Created
June 15, 2011 05:03
-
-
Save wombleton/1026507 to your computer and use it in GitHub Desktop.
The ultimate in jQuery plugins
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($) { | |
var index = 0, | |
words = ['badger', 'badger', 'badger', 'badger', 'badger', 'mushroom'] | |
$.extend({ | |
badger: function() { | |
return words[index++ % words.length]; | |
} | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment