Created
March 28, 2013 19:08
-
-
Save MartijnR/5265925 to your computer and use it in GitHub Desktop.
takeout
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
(function($){ | |
$.fn.takeOut = function($nodes){ | |
return this.filter(function(){ | |
for (var i = 0 ; i<$nodes.length ; i++){ | |
if ($(this).is($nodes.eq(i))){ | |
console.log('took out node: ', $(this)); | |
return false; | |
} | |
} | |
return true; | |
}); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment