diff --git a/src/navigation/nav-controller-base.ts b/src/navigation/nav-controller-base.ts index bd5ff1a7ec6..493876f0620 100644 --- a/src/navigation/nav-controller-base.ts +++ b/src/navigation/nav-controller-base.ts @@ -959,4 +959,4 @@ let ctrlIds = -1; const DISABLE_APP_MINIMUM_DURATION = 64; const ACTIVE_TRANSITION_MAX_TIME = 5000; -const ACTIVE_TRANSITION_OFFSET = 200; \ No newline at end of file +const ACTIVE_TRANSITION_OFFSET = 200; diff --git a/src/util/events.ts b/src/util/events.ts index f0098bcd557..72f5f06bf99 100644 --- a/src/util/events.ts +++ b/src/util/events.ts @@ -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