aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/data.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/data.js b/src/data.js
index 448decd00..054a520f5 100644
--- a/src/data.js
+++ b/src/data.js
@@ -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,