visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

page.len does not decrease after click browser's back button #578

Open bumprat opened 3 years ago

bumprat commented 3 years ago

In Page.prototype.back, this.len-- is used to make len property decrease when manually call page.back(). However, in Page.prototype._onpopstate, which is attached to window's popstate event, property len is not changed.

Is this the desired behavior or am I missing something here?