requirejs - Hammer.js events with Marionette.js doesn't work -


i'm trying use hammer.js backbone , marionette , require.js

when initialize events , event not fired .

i use hammer.js , jquery.hammer extension

i :

edit :

events: {     "tap .menu ": " handletap " },  handletape: function(){     console.log("hammer time!"); },  onrender: function () {     // instantiate hammer     $ el.hammer(). } 

to reach goal , include hammer.js first , jquery.hammer before backbone , marionette.js. there no error in debug console, event not detected

there way bind hammer's events without doing :

onrender: function () {     // instantiate hammer , bind tap event     this.$el.hammer().bind('tap .menu', function () {         console.log('hammer time!'         }).     } 


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -