Browse files

Merge pull request #1 from ef4/child_array

SC.ChildArray expects wrong signature for arrayObserver callback
  • Loading branch information...
2 parents 4ee680a + df60bc3 commit f7e8082c2e1fdfcfd01acdeca17391d8127db899 @etgryphon etgryphon committed Aug 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/system/child_array.js
View
4 lib/system/child_array.js
@@ -248,7 +248,7 @@ SC.ChildArray = SC.Object.extend(SC.Enumerable, SC.Array, SC.MutableEnumerable,
this.arrayContentWillChange(0, oldLen, newLen);
this._prevChildren = children;
- this._childrenContentDidChange(0, oldLen, newLen);
+ this._childrenContentDidChange(children, 0, oldLen, newLen);
return this;
},
@@ -263,7 +263,7 @@ SC.ChildArray = SC.Object.extend(SC.Enumerable, SC.Array, SC.MutableEnumerable,
@param {Number} value
@param {Number} rev
*/
- _childrenContentDidChange: function(start, removedCount, addedCount) {
+ _childrenContentDidChange: function(content, start, removedCount, addedCount) {
this._records = null ; // clear cache
this.arrayContentDidChange(start, removedCount, addedCount);
},

0 comments on commit f7e8082

Please sign in to comment.