Skip to content

Commit

Permalink
feat(events): handler argument is optional in unsubscribe()
Browse files Browse the repository at this point in the history
fixes #8235
  • Loading branch information
manucorporat committed Sep 30, 2016
1 parent 607ceef commit 8878e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/navigation/nav-controller-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,4 +959,4 @@ let ctrlIds = -1;

const DISABLE_APP_MINIMUM_DURATION = 64;
const ACTIVE_TRANSITION_MAX_TIME = 5000;
const ACTIVE_TRANSITION_OFFSET = 200;
const ACTIVE_TRANSITION_OFFSET = 200;
2 changes: 1 addition & 1 deletion src/util/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class Events {
*
* @return true if a handler was removed
*/
unsubscribe(topic: string, handler: Function) {
unsubscribe(topic: string, handler: Function = null) {
let t = this._channels[topic];
if (!t) {
// Wasn't found, wasn't removed
Expand Down

0 comments on commit 8878e70

Please sign in to comment.