Mr.doob 12 лет назад
Родитель
Сommit
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 ) {

粤ICP备19079148号