Skip to content

Commit 37e8b44

Browse files
committed
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.
1 parent 5f3c36c commit 37e8b44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ jQuery.extend({
282282
}
283283
},
284284

285+
// Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9
286+
attrFn: {},
287+
285288
attr: function( elem, name, value, pass ) {
286289
var ret, hooks, notxml,
287290
nType = elem.nodeType;

0 commit comments

Comments
 (0)