|
@@ -233,6 +233,7 @@ var UIOutliner = function ( editor ) {
|
|
}, false );
|
|
}, false );
|
|
|
|
|
|
this.dom = dom;
|
|
this.dom = dom;
|
|
|
|
+ this.editor = editor;
|
|
|
|
|
|
this.options = [];
|
|
this.options = [];
|
|
this.selectedIndex = - 1;
|
|
this.selectedIndex = - 1;
|
|
@@ -369,6 +370,7 @@ UIOutliner.prototype.setOptions = function ( options ) {
|
|
|
|
|
|
if ( newParentIsChild ) return;
|
|
if ( newParentIsChild ) return;
|
|
|
|
|
|
|
|
+ var editor = scope.editor;
|
|
editor.execute( new MoveObjectCommand( editor, object, newParent, nextObject ) );
|
|
editor.execute( new MoveObjectCommand( editor, object, newParent, nextObject ) );
|
|
|
|
|
|
var changeEvent = document.createEvent( 'HTMLEvents' );
|
|
var changeEvent = document.createEvent( 'HTMLEvents' );
|