Created
January 21, 2009 17:21
-
-
Save darwin/50046 to your computer and use it in GitHub Desktop.
This file contains 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
// jQuery 1.3 way of doing filters | |
// example: $('div.items:reallyvisible').hide() | |
$.extend($.expr[":"], { | |
reallyvisible: function(el) { | |
return !(jQuery(el).is(':hidden') || jQuery(el).parents(':hidden').length); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment