Roo/bootstrap/Menu.js
authorAlan Knowles <alan@roojs.com>
Tue, 29 Mar 2016 05:58:51 +0000 (13:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 29 Mar 2016 05:58:51 +0000 (13:58 +0800)
Roo/bootstrap/Menu.js

index a10b467..799dabf 100644 (file)
@@ -128,14 +128,9 @@ Roo.extend(Roo.bootstrap.Menu, Roo.bootstrap.Component,  {
     },
     initEvents : function() {
         
-        // Roo.log("ADD event");
-        // Roo.log(this.triggerEl.dom);
-        //
-        if (Roo.isTouch) {
-            this.triggerEl.on('touchstart', this.onTriggerPressTouch, this);
-        }
-        
-        this.triggerEl.on('mouseup', this.onTriggerPress, this);
+       // Roo.log("ADD event");
+       // Roo.log(this.triggerEl.dom);
+        this.triggerEl.on(Roo.isTouch ? 'touchstart' : 'mouseup', this.onTriggerPress, this);
         
         this.triggerEl.addClass('dropdown-toggle');
         this.el.on(Roo.isTouch ? 'touchstart' : 'click' , this.onClick, this);