Skip to content

Instantly share code, notes, and snippets.

@meleyal
Created March 15, 2013 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meleyal/5170699 to your computer and use it in GitHub Desktop.
Save meleyal/5170699 to your computer and use it in GitHub Desktop.
Test jQuery plugins for memory leaks
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