From 37e8b44884cb9f5ceed84548c6e3961b449d98b2 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 7 Aug 2012 13:45:47 -0400 Subject: [PATCH] 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. --- src/attributes.js | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5