Skip to content

Commit

Permalink
fix bug on sidenav unregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Nov 25, 2016
1 parent 5cb3ace commit 741e03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/paper-sidenav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 741e03e

Please sign in to comment.