2
0
Mr.doob 11 жил өмнө
parent
commit
321b685f4a
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 10 0
      editor/js/libs/ui.js

+ 10 - 0
editor/js/libs/ui.js

@@ -126,6 +126,16 @@ UI.Panel.prototype.remove = function () {
 
 };
 
+UI.Panel.prototype.clear = function () {
+
+	while ( this.dom.children.length ) {
+
+		this.dom.removeChild( this.dom.lastChild );
+
+	}
+
+};
+
 // Text
 
 UI.Text = function ( text ) {