expanding "r.fn.init" object in console
I used console.log on a $(e.target).parent() and I have something like this:
r.fn.init [li, prevObject: r.fn.init(1)]
However,when I expand this object, this is what I see:
- r.fn.init [li, prevObject: r.fn.init(1)]
- 0: li.active
- length: 1
- prevObject: r.fn.init [a#link-LEVEL4-01]
- __proto__: Object(0)
- I don't understand why "li" is set on active inside. When I used the function addCLass() or removeClass(), it seems to affect only the "li" that I see beside r.fn.init, but not the "li" that I see inside. I don't even understand why they are not the same!? How can I change the value of li inside the expand? I need to remove class active!
Thanks for the help!