Skip to content

Commit

Permalink
Merge pull request emberjs-addons#1 from ef4/child_array
Browse files Browse the repository at this point in the history
SC.ChildArray expects wrong signature for arrayObserver callback
  • Loading branch information
etgryphon committed Aug 12, 2011
2 parents 4ee680a + df60bc3 commit f7e8082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/child_array.js
Expand Up @@ -248,7 +248,7 @@ SC.ChildArray = SC.Object.extend(SC.Enumerable, SC.Array, SC.MutableEnumerable,


this.arrayContentWillChange(0, oldLen, newLen); this.arrayContentWillChange(0, oldLen, newLen);
this._prevChildren = children; this._prevChildren = children;
this._childrenContentDidChange(0, oldLen, newLen); this._childrenContentDidChange(children, 0, oldLen, newLen);


return this; return this;
}, },
Expand All @@ -263,7 +263,7 @@ SC.ChildArray = SC.Object.extend(SC.Enumerable, SC.Array, SC.MutableEnumerable,
@param {Number} value @param {Number} value
@param {Number} rev @param {Number} rev
*/ */
_childrenContentDidChange: function(start, removedCount, addedCount) { _childrenContentDidChange: function(content, start, removedCount, addedCount) {
this._records = null ; // clear cache this._records = null ; // clear cache
this.arrayContentDidChange(start, removedCount, addedCount); this.arrayContentDidChange(start, removedCount, addedCount);
}, },
Expand Down

0 comments on commit f7e8082

Please sign in to comment.