git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve performance of get() for negative indices. Fixes #5476.
[jquery.git]
/
src
/
data.js
diff --git
a/src/data.js
b/src/data.js
index
0407f73
..
f7f65ef
100644
(file)
--- a/
src/data.js
+++ b/
src/data.js
@@
-177,7
+177,8
@@
jQuery.fn.extend({
} else {
return this.each(function() {
} else {
return this.each(function() {
- var $this = jQuery( this ), args = [ parts[0], value ];
+ var $this = jQuery( this ),
+ args = [ parts[0], value ];
$this.triggerHandler( "setData" + parts[1] + "!", args );
jQuery.data( this, key, value );
$this.triggerHandler( "setData" + parts[1] + "!", args );
jQuery.data( this, key, value );