]> source.dussan.org Git - jquery.git/commitdiff
Moved attrFN to deprecated. Close gh-977.
authorAkintayo Akinwunmi <aakinwunmi@judge.com>
Tue, 16 Oct 2012 13:51:01 +0000 (09:51 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 16 Oct 2012 14:01:18 +0000 (10:01 -0400)
src/attributes.js
src/deprecated.js
test/unit/deprecated.js

index 76aed29960d4447bcb795db67a164dfa8b77ebd6..5a674998287e22db25c18d8d079a8167849cdf46 100644 (file)
@@ -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;
 
index 241eb2a815eb49e6c0f84add3c9153bcb5f8ce2f..4ea47b333430982c31af8dd80792c14a5875f2ab 100644 (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 ) {
 
index 48c3bda1872496c03c30c4982d240cc7c0b2f52d..f5787e5181d644c4345ed0a2a2020902d4345bbb 100644 (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");
+       });
+
 }