Created
June 21, 2011 20:34
-
-
Save Maciek416/1038829 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var someElementRef; | |
// ... time passes and someElementRef gets filled. Now we can do: | |
$(someElementRef).find(".some .fun .selector"); | |
// Or, even better, cache the jQuery result before doing the above | |
// Only run this once so we don't keep re-jQueryifying | |
someElementRef = $("#bob"); | |
// Hammer this object with .find() as often as desired | |
someElementRef.find(".some .fun .selector"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment