js-mvc-framework
Advanced tools
Comparing version 1.2.19 to 1.2.20
@@ -19,4 +19,5 @@ import { recursiveAssign } from '../../Coutil/index.js' | ||
) | ||
this.window | ||
this.enableEvents() | ||
this.#popState() | ||
// this.#popState() | ||
} | ||
@@ -26,2 +27,3 @@ get window() { | ||
this.#_window = window | ||
this.#_window.addEventListener('load', this.#boundPopState, { once: true }) | ||
this.#_window.addEventListener('popstate', this.#boundPopState) | ||
@@ -55,3 +57,3 @@ return this.#_window | ||
// Methods | ||
#popState($event = {}) { | ||
#popState() { | ||
const preterRoute = this.route | ||
@@ -64,3 +66,3 @@ if(preterRoute) preterRoute.active = false | ||
route.active = true | ||
location.state = $event.state | ||
location.state = history.state | ||
location.pathname = this.window.location.pathname | ||
@@ -67,0 +69,0 @@ location.hash = this.window.location.hash |
{ | ||
"name": "js-mvc-framework", | ||
"author": "Thomas Patrick Welborn", | ||
"version": "1.2.19", | ||
"version": "1.2.20", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1658604
12719