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 makelenproperty decrease when manually callpage.back(). However, inPage.prototype._onpopstate, which is attached towindow'spopstateevent, propertylenis not changed.Is this the desired behavior or am I missing something here?