Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "ck-array", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A simple observable array for JavaScript Frameworks", | ||
@@ -5,0 +5,0 @@ "main": "src/ckArray.js", |
@@ -21,6 +21,7 @@ // Generated by CoffeeScript 1.9.1 | ||
var args, result; | ||
self = this; | ||
args = Array.prototype.slice.call(arguments); | ||
this.observers.map(function(observer) { | ||
var ref; | ||
return (ref = observer.prePush) != null ? ref.apply(this, args) : void 0; | ||
return (ref = observer.prePush) != null ? ref.apply(self, args) : void 0; | ||
}); | ||
@@ -30,3 +31,3 @@ result = Array.prototype.push.call(this, args); | ||
var ref; | ||
return (ref = observer.postPush) != null ? ref.apply(this, args) : void 0; | ||
return (ref = observer.postPush) != null ? ref.apply(self, args) : void 0; | ||
}); | ||
@@ -37,6 +38,7 @@ return result; | ||
var args, result; | ||
self = this; | ||
args = Array.prototype.slice.call(arguments); | ||
this.observers.map(function(observer) { | ||
var ref; | ||
return (ref = observer.preSplice) != null ? ref.apply(this, args) : void 0; | ||
return (ref = observer.preSplice) != null ? ref.apply(self, args) : void 0; | ||
}); | ||
@@ -46,3 +48,3 @@ result = Array.prototype.splice.apply(this, args); | ||
var ref; | ||
return (ref = observer.postSplice) != null ? ref.call(this, result) : void 0; | ||
return (ref = observer.postSplice) != null ? ref.call(self, result) : void 0; | ||
}); | ||
@@ -53,6 +55,7 @@ return result; | ||
var args, result; | ||
self = this; | ||
args = Array.prototype.slice.call(arguments); | ||
this.observers.map(function(observer) { | ||
var ref; | ||
return (ref = observer.preSlice) != null ? ref.apply(this, args) : void 0; | ||
return (ref = observer.preSlice) != null ? ref.apply(self, args) : void 0; | ||
}); | ||
@@ -62,3 +65,3 @@ result = Array.prototype.slice.apply(this, args); | ||
var ref; | ||
return (ref = observer.postSlice) != null ? ref.call(this, result) : void 0; | ||
return (ref = observer.postSlice) != null ? ref.call(self, result) : void 0; | ||
}); | ||
@@ -65,0 +68,0 @@ return result; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22424
191