2011年12月16日 星期五

[SenchaTouch] Tap, TapHold Listeners

listeners:{
           
            body:{
                taphold: function(){
                    hideLeftButton();
                    hideRightButton();
                    toggleNavBar();
                },
                delegate: 'div.top-bar'
                
            }
        },
The delegate option allows you to pass a selector that means the event will only fire when an element matching that selector is in the event target's chain (i.e. returns something in an e.getTarget(delegate) call). In this case, only fire when

沒有留言:

張貼留言