Side navigation
#5271 closed bug (fixed)
Opened September 19, 2009 12:02PM UTC
Closed July 28, 2010 03:07AM UTC
$()
Reported by: | Regent | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | selector | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello! I use a translator, so excuse me for mistakes!
$().end() returns [], ie it is impossible to return to the $() in the chain :(
Attachments (0)
Change History (5)
Changed September 24, 2009 02:56AM UTC by comment:1
Changed September 28, 2009 06:34AM UTC by comment:2
Replying to [comment:1 dmethvin]:
I am not clear on what you are saying, can you attach an example?
Yes! $() returns [ window ], and $().end() returns [ ].
Example: $().find( selector ).show().end() - return [ ].
Can not use such a chain:
$().data( 'startTime', new Date() ).find( '.foo' ).show().end().find( '.bar' ).hide();
Sorry for my English :)
Changed October 03, 2009 12:59AM UTC by comment:3
In your example, the .end() matches up with the previous .find() and should return you to the document. So I still am not clear on the problem Can you provide a complete test document?
Changed October 03, 2009 04:18PM UTC by comment:4
Replying to [comment:3 dmethvin]:
In your example, the .end() matches up with the previous .find() and should return you to the document. So I still am not clear on the problem Can you provide a complete test document?
Sorry for the confusion, but that's the problem, which is impossible in such a chain re-use document!
Changed July 28, 2010 03:07AM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
This was fixed in 1.4; $() no longer returns [ window ].
I am not clear on what you are saying, can you attach an example?