Roo/bootstrap/Menu.js
authorEdward <edward@roojs.com>
Mon, 9 Jul 2018 06:07:44 +0000 (14:07 +0800)
committerEdward <edward@roojs.com>
Mon, 9 Jul 2018 06:07:44 +0000 (14:07 +0800)
Roo/bootstrap/Menu.js

index afcd2dd..ce5d68a 100644 (file)
@@ -402,6 +402,12 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
     {
         Roo.log(this.el);
         return this.el;
+    },
+    
+    clear : function()
+    {
+        this.getEl().dom.innerHTML = '';
+        this.menuItems.clear();
     }
 });