[jQuery] Re: parents() clears vars

2007-09-17 Thread Erik Beeson
What does OK mean? What's the problem? How are you trying to use this function? --Erik On 9/17/07, Nikola Ivanov [EMAIL PROTECTED] wrote: I have the following funtion: function foo() { console.log( arguments ); // -- OK var e = arguments[0]; console.log( e );// --

[jQuery] Re: parents() clears vars

2007-09-17 Thread Nikola Ivanov
What does OK mean? It means, that I'm getting the expected output. What's the problem? The problem is that after calling e.parents(), arguments gets cleared out and is afterwards empty, but only when parents( 'li' ) is empty. How are you trying to use this function? I have a recursive tree

[jQuery] Re: parents() clears vars

2007-09-17 Thread Nikola Ivanov
Gee, I've just read my last post: I couldn't understand my point :). Sorry about that, I will give it a new shot: Consider the tree: ul class=treeview liaspanel 1/span/a/li liaspanel 2/span/a/li li aspanel 3/span/a ul liaspanel 3.1/span/a/li liaspanel 3.2/span/a/li