git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use alternative technique for triggering an abort, preventing an exception from being...
[jquery.git]
/
src
/
data.js
diff --git
a/src/data.js
b/src/data.js
index
69adc12
..
e3dc190
100644
(file)
--- a/
src/data.js
+++ b/
src/data.js
@@
-100,7
+100,7
@@
jQuery.extend({
});
jQuery.fn.extend({
});
jQuery.fn.extend({
- data: function( key, value ){
+ data: function( key, value ) {
if ( typeof key === "undefined" && this.length ) {
return jQuery.data( this[0] );
if ( typeof key === "undefined" && this.length ) {
return jQuery.data( this[0] );
@@
-123,14
+123,14
@@
jQuery.fn.extend({
this.data( parts[0] ) :
data;
} else {
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 );
});
}
},
jQuery.data( this, key, value );
});
}
},
- removeData: function( key ){
- return this.each(function(){
+ removeData: function( key ) {
+ return this.each(function() {
jQuery.removeData( this, key );
});
}
jQuery.removeData( this, key );
});
}