Merge remote branch 'origin/master'

This commit is contained in:
Jonathan Puckey 2011-06-17 18:23:16 +02:00
commit 69d7e026ba

View file

@ -1413,8 +1413,8 @@ var Item = this.Item = Base.extend({
* @param {Item} item The item that will be appended as a child
*/
insertChild: function(index, item) {
item._removeFromParent();
if (this._children) {
item._removeFromParent();
Base.splice(this._children, [item], index, 0);
item._parent = this;
item._setProject(this._project);