In firebug I noticed the following error: n.parents(jqexpr).slice is not a function
It seems that the function jQuery.fn.parentsOrSelf trips over this if/else clause:
- Code: Select all
if (n.filter(jqexpr).size() == 1)
return n;
else
return n.parents(jqexpr).slice(0,1);
I changed the comparison operator to '<=' and it all seemed to work fine again.
- Code: Select all
if (n.filter(jqexpr).size() <= 1)
return n;
else
return n.parents(jqexpr).slice(0,1);
The change seems to fit in the purpose of the clause too.
Maybe best to let the lead developer decide if this is the way to go?
Thx, Wouter