Skip to content

Instantly share code, notes, and snippets.

@kmiyashiro
Created February 6, 2012 18:06
Show Gist options
  • Save kmiyashiro/1753755 to your computer and use it in GitHub Desktop.
Save kmiyashiro/1753755 to your computer and use it in GitHub Desktop.
Auto re-use element?
checkExisting: function() {
var existing = $(this.id)[0];
if (existing) this.setElement(existing);
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment