Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

backbone js event listener

var ViewName = Backbone.View.extend({  
   initialize: function(){  
      this.$el.on("eventName", this.functionName, this)  
   },  
   functionName: function(){  
    //whatever  
   }  
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #backbone #js #event #listener
ADD COMMENT
Topic
Name
2+4 =