Created
March 15, 2013 15:32
-
-
Save meleyal/5170699 to your computer and use it in GitHub Desktop.
Test jQuery plugins for memory leaks
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
window.installTest = -> | |
for i in [0...500] | |
els = $('[data-behavior~=plugin]') | |
els.each (idx, el) -> $(el).plugin().data('plugin').uninstall() | |
console.log i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment