[jQuery] parents() clears vars
I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// -- OK var p = arguments[0].parents( 'li' ); // -- problem occurs ONLY if this selection is empty
[jQuery] parents() clears vars
I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// -- OK var p = arguments[0].parents( 'li' ); // -- problem occurs ONLY if this selection is empty