You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to create a instance with the createPage method instead of using the global page instance, since the this.configure runs at the new Page() step AND at the page.start, you end up with two event handlers running at the same time.
Also, the options object passed onto createPage is currently not used
Edit:
My bad, the bindings are not duplicated. The problem is that the default globalPage bindings aren't working well with another instance of page, even if you don't use it.
The current workaround to this is to call globalPage.start() and then globalPage.stop() which removes the listeners.
Edit 2:
A simple globalPage.stop() won't work because it checks for this._running which is set only inside .start()
The text was updated successfully, but these errors were encountered:
kaisermann
changed the title
Duplicated bindings when using createPage
Default global Page event bindings prevent other page instances from working correctly
Oct 2, 2018
kaisermann
changed the title
Default global Page event bindings prevent other page instances from working correctly
Default global Page event bindings prevent other page instances events from working correctly
Oct 2, 2018
kaisermann
changed the title
Default global Page event bindings prevent other page instances events from working correctly
Default global Page event bindings prevent other Page instances events from working correctly
Oct 2, 2018
If you try to create a instance with the
createPage
method instead of using the globalpage
instance, since thethis.configure
runs at thenew Page()
step AND at thepage.start
, you end up with two event handlers running at the same time.Also, the
options
object passed ontocreatePage
is currently not usedEdit:
My bad, the bindings are not duplicated. The problem is that the default
globalPage
bindings aren't working well with another instance ofpage
, even if you don't use it.The current workaround to this is to call
globalPage.start()
and thenglobalPage.stop()
which removes the listeners.Edit 2:
A simple
globalPage.stop()
won't work because it checks forthis._running
which is set only inside.start()
The text was updated successfully, but these errors were encountered: