X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdata.js;h=e3dc1902af4c7867d1929a65b8c8e44ac0e355df;hb=61e37d41490aed319a176c6ca7feb95e5505059c;hp=69adc1239b107611031666633ec5624a860b61a5;hpb=36c99dc0c7a745a88488f519b38de811d6d4c8d9;p=jquery.git diff --git a/src/data.js b/src/data.js index 69adc12..e3dc190 100644 --- a/src/data.js +++ b/src/data.js @@ -100,7 +100,7 @@ jQuery.extend({ }); jQuery.fn.extend({ - data: function( key, value ){ + data: function( key, value ) { if ( typeof key === "undefined" && this.length ) { return jQuery.data( this[0] ); @@ -123,14 +123,14 @@ jQuery.fn.extend({ this.data( parts[0] ) : data; } else { - return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() { jQuery.data( this, key, value ); }); } }, - removeData: function( key ){ - return this.each(function(){ + removeData: function( key ) { + return this.each(function() { jQuery.removeData( this, key ); }); }