diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-08-07 13:45:47 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-08-07 13:45:47 -0400 |
commit | 37e8b44884cb9f5ceed84548c6e3961b449d98b2 (patch) | |
tree | 0ed70cc6140888619f45e83cfb6efab7cbc24335 /src/attributes.js | |
parent | 5f3c36c7c0f997625a4b6be7397ecd31433511bf (diff) | |
download | jquery-37e8b44884cb9f5ceed84548c6e3961b449d98b2.tar.gz jquery-37e8b44884cb9f5ceed84548c6e3961b449d98b2.zip |
Add back a sacrificial $.attrFn object.
Originally removed in 86b775d036627ebd7242fbb4eb9f24e4ba1fa9c5 as part of the enhancement that allows $(html, props) to use any $.fn method.
Although $.attrFn is undocumented it appears to be a poorly kept secret. jQuery Mobile 1.1 is using it and it's the topic of several blog/StackOverflow posts. Leave an empty object here as a dumpster for now, but it's coming out for good in 1.9.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/attributes.js b/src/attributes.js index e10ddced7..aeb4e0f9f 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -282,6 +282,9 @@ jQuery.extend({ } }, + // Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9 + attrFn: {}, + attr: function( elem, name, value, pass ) { var ret, hooks, notxml, nType = elem.nodeType; |