2
0
Temdog007 6 жил өмнө
parent
commit
8e7e2a2174
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      editor/js/Editor.js

+ 5 - 1
editor/js/Editor.js

@@ -482,7 +482,11 @@ Editor.prototype = {
 
 	focus: function ( object ) {
 
-		this.signals.objectFocused.dispatch( object );
+		if ( object !== undefined ) {
+
+			this.signals.objectFocused.dispatch( object );
+
+		}
 
 	},