Skip to content
Permalink
Browse files

Moved attrFN to deprecated. Close gh-977.

  • Loading branch information...
aakinwunmi authored and dmethvin committed Oct 16, 2012
1 parent 6eacf67 commit 78617f067a0e03d9fe9aad135bbdfba880ddf968
Showing with 10 additions and 4 deletions.
  1. +1 −4 src/attributes.js
  2. +3 −0 src/deprecated.js
  3. +6 −0 test/unit/deprecated.js
@@ -276,10 +276,7 @@ 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 ) {
attr: function( elem, name, value, pass ) {
var ret, hooks, notxml,
nType = elem.nodeType;

@@ -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 ) {

@@ -101,4 +101,10 @@ if ( jQuery.browser ) {
// manually clean up detached elements
$div.remove();
});

test("attrFn test", function() {
expect(1);
ok(!!jQuery.attrFn, "attrFnPresent");
});

}

0 comments on commit 78617f0

Please sign in to comment.
You can’t perform that action at this time.