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?
In
Page.prototype.back
,this.len--
is used to makelen
property decrease when manually callpage.back()
. However, inPage.prototype._onpopstate
, which is attached towindow
'spopstate
event, propertylen
is not changed.Is this the desired behavior or am I missing something here?