mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Reduce Data.prototype.add by using the returned length value of this.owners.push(owner)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
7f94a5cc3a
commit
64630eaf85
@ -16,8 +16,7 @@ Data.index = function( array, node ) {
|
||||
|
||||
Data.prototype = {
|
||||
add: function( owner ) {
|
||||
this.owners.push( owner );
|
||||
return (this.cache[ this.owners.length - 1 ] = {});
|
||||
return (this.cache[ this.owners.push( owner ) - 1 ] = {});
|
||||
},
|
||||
set: function( owner, data, value ) {
|
||||
var prop,
|
||||
|
Loading…
Reference in New Issue
Block a user