Skip to content

Instantly share code, notes, and snippets.

@furf
Created March 12, 2010 04:24
Show Gist options
  • Save furf/330028 to your computer and use it in GitHub Desktop.
Save furf/330028 to your computer and use it in GitHub Desktop.
$.fn.expando = (function (re) {
return function () {
var prop, elem = this.get(0);
for (prop in elem) {
if (re.test(prop)) {
return elem[prop];
}
}
};
})(/^jQuery\d{13}$/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment