vakata/jstree — Issue #121: Error in themeroller after upgrading to jQuery 1.7
Author: ChrisRaven
Created: 2011-11-08 09:47:04+00:00
State: open

Hi,

After upgrading to jQuery 1.7, Firebug shows me an error in line 4199
...
.find("a." + s.item_h).not(data.rslt.obj).removeClass(s.item_h);
...
When I hover the tree, it says, that 'data' doesn't exist (or is undefined, I don't remember at the time).

As a temporary workaround I surrounded lines 4198 - 4200 with conditional block:

if (typeof data !== 'undefined') {
this.get_container()
.find("a." + s.item_h).not(data.rslt.obj).removeClass(s.item_h);
data.rslt.obj.children("a").addClass(s.item_h);
}

Best regards
ChrisRaven