ChrisRaven/jstree-grid — comment on commit e95482be8011e59d8506e18da6ed3108f40a2c15
File: jstreegrid.js line 170
By ChrisRaven:

Since "i" variable isn't available, when event is triggered, then cols[i] is also unavailable. So, I had to copy each column settings to additional variable and pass fields from that variable, when event is triggered. Since "col" is necessary, we can use it in the rest of the code, and replace each "cols[i]" with it. Shorter code and easier to get each field for interpreter (I suppose).