Created
April 18, 2009 16:02
-
-
Save RStankov/97667 to your computer and use it in GitHub Desktop.
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
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