Commit 78617f06 authored by Akintayo Akinwunmi's avatar Akintayo Akinwunmi Committed by Dave Methvin

Moved attrFN to deprecated. Close gh-977.

parent 6eacf67e
...@@ -276,10 +276,7 @@ jQuery.extend({ ...@@ -276,10 +276,7 @@ jQuery.extend({
} }
}, },
// Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9 attr: function( elem, name, value, pass ) {
attrFn: {},
attr: function( elem, name, value, pass ) {
var ret, hooks, notxml, var ret, hooks, notxml,
nType = elem.nodeType; nType = elem.nodeType;
......
...@@ -60,6 +60,9 @@ jQuery.sub = function() { ...@@ -60,6 +60,9 @@ jQuery.sub = function() {
return jQuerySub; return jQuerySub;
}; };
// Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9
jQuery.attrFn = {};
var oldToggle = jQuery.fn.toggle; var oldToggle = jQuery.fn.toggle;
jQuery.fn.toggle = function( fn, fn2 ) { jQuery.fn.toggle = function( fn, fn2 ) {
......
...@@ -101,4 +101,10 @@ if ( jQuery.browser ) { ...@@ -101,4 +101,10 @@ if ( jQuery.browser ) {
// manually clean up detached elements // manually clean up detached elements
$div.remove(); $div.remove();
}); });
test("attrFn test", function() {
expect(1);
ok(!!jQuery.attrFn, "attrFnPresent");
});
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment