Skip to content

Instantly share code, notes, and snippets.

@RStankov
Created April 18, 2009 16:02
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 RStankov/97667 to your computer and use it in GitHub Desktop.
Save RStankov/97667 to your computer and use it in GitHub Desktop.
Element.addMethods({
unsetStorage: function(element){
if (!(element = $(element))) return;
if (element === window){
delete(Element.Storage[0]);
} else if (typeof element._prototypeUID !== "undefined") {
var uid = element._prototypeUID[0];
if (uid in Element.Storage)
delete(Element.Storage[uid]);
}
return element;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment