off (eventName, callback) private
Defined in bower_components/rsvp/lib/rsvp/events.js:109
You can use off to stop firing a particular callback for an event: function doStuff() { // do stuff! }
object.on('stuff', doStuff);
object.trigger('stuff'); // doStuff will be called
// Unregister ONLY the doStuff callback
object.off('stuff', doStuff);
object.trigger('stuff'); // doStuff will NOT be called
If you don't pass a callback argument to off, ALL callbacks for the event will not be executed