From 741e03ed5cbd5b75306ac9bbad948482b888027f Mon Sep 17 00:00:00 2001 From: Miguel Andrade Date: Fri, 25 Nov 2016 18:29:38 +0000 Subject: [PATCH] fix bug on sidenav unregistration --- addon/services/paper-sidenav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/services/paper-sidenav.js b/addon/services/paper-sidenav.js index 7cd59dd4c..b7ad589bd 100644 --- a/addon/services/paper-sidenav.js +++ b/addon/services/paper-sidenav.js @@ -30,7 +30,7 @@ export default Service.extend({ unregister(name, sidenav) { assert(`You tried to unregister a sidenav named '${name}' but no such sidenav is registered`, this._sidenavs[name] && this._sidenavs[name].length); let sidenavs = this._sidenavs[name] || []; - this._sidenavs[name] = sidenavs.filter((s) => s !== sidenav); + this._sidenavs[name] = sidenavs.filter((s) => s.sidenav !== sidenav); }, open(name = 'default') {