Moved attrFN to deprecated. Close gh-977.

This commit is contained in:
Akintayo Akinwunmi 2012-10-16 09:51:01 -04:00 committed by Dave Methvin
parent 6eacf67e30
commit 78617f067a
3 changed files with 10 additions and 4 deletions

View File

@ -276,9 +276,6 @@ 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;

View File

@ -60,6 +60,9 @@ jQuery.sub = function() {
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;
jQuery.fn.toggle = function( fn, fn2 ) {

View File

@ -101,4 +101,10 @@ if ( jQuery.browser ) {
// manually clean up detached elements
$div.remove();
});
test("attrFn test", function() {
expect(1);
ok(!!jQuery.attrFn, "attrFnPresent");
});
}