Removes a previously bound callback function (using the
on method) for an event.
You would want to use this method so that you can stop listening to particular events and re-bind new event listeners with new logic, for example. This method would be useful in cases where your are using a single page application and use a custom interface.
When called with an empty string, the callbacks for all events are removed.
// Stop listening for the 'widgetedit:widget:ready' event. authorApp.off('widgetedit:widget:ready'); // Multiple events can be unbound using chained calls. authorApp .off('widgetedit:widget:changed') .off('widgetedit:preview:changed'); // Removes all event listeners. Note the empty string must be passed as an argument. authorApp.off('');
Returns the current instance of Author API if successful.