[jQuery] parents() clears vars

2007-09-17 Thread Nikola Ivanov
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

2007-09-17 Thread Nikola Ivanov
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