app/assets/lookbook/js/nav.js in lookbook-0.3.0.beta.1 vs app/assets/lookbook/js/nav.js in lookbook-0.3.0.beta.2

- old
+ new

@@ -19,11 +19,14 @@ Promise.resolve().then(() => { this.$refs.shim.style.height = "auto"; this.$dispatch("nav:updated"); }); }, - navigate($event) { - history.pushState({}, null, $event.currentTarget.href); + navigate(path) { + if (path instanceof Event) { + path = path.currentTarget.href; + } + history.pushState({}, null, path); this.$dispatch("popstate"); }, focusFilter() { this.currentFocus = this.$refs.filter; setTimeout(() => this.$refs.filter.focus(), 0);