Roo/bootstrap/Menu.js
authorAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 06:29:10 +0000 (14:29 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 06:29:10 +0000 (14:29 +0800)
Roo/bootstrap/Menu.js

index 78bf130..de08367 100644 (file)
@@ -129,8 +129,10 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
     },
     findTargetItem : function(e){
         var t = e.getTarget(".dropdown-menu-item", this.el,  true);
-        if(t && t.menuItemId){
-            return this.items.get(t.menuItemId);
+        if(t && t.id){
+            return Roo.Component.get(t.id)
+            
+            //return this.items.get(t.menuItemId);
         }
         return false;
     },