Backbone.js Event once()The event once method is just like event on method but it causes the bound callback to only fire once before being removed. Syntax: Parameter explanation:event: It is used to bind an object. callback: It is executed whenever an event is fired. It references to the code. context: It is an object that can be passed to a callback function. Let's take an example. See this example: Test it NowOutput: Save the above code in once.html file and open this file in a browser. Next TopicBackbone.js ListenTo Method |