app/scripts/routing.js
// Utility function to listen to an event on a node once.
Utility function to listen to an event on a node once.
Utility function to listen to an event on a node once .
function once(node, event, fn, args) {
  var self = this;
  var listener = function() {
    fn.apply(self, args);
    node.removeEventListener(event, listener, false);
  };
  node.addEventListener(event, listener, false);
}
function once ( node , event , fn , args ) { var self = this ; var listener = function ( ) { fn . apply ( self , args ) ; node . removeEventListener ( event , listener , false ) ; } ; node . addEventListener ( event , listener , false ) ; }
Utility function to listen to an event on a node once.
Utility function to listen to an event on a node once .