Skip to content
Browse files
Add back a sacrificial $.attrFn object.
Originally removed in 86b775d 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.
  • Loading branch information
dmethvin committed Aug 7, 2012
1 parent 5f3c36c commit 37e8b44884cb9f5ceed84548c6e3961b449d98b2
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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;

0 comments on commit 37e8b44

Please sign in to comment.