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
When browser cache is enabled (and thus, the loaded .html document is loaded from cache), Browser.document.addEventListener('load',foo) never triggers foo...
The text was updated successfully, but these errors were encountered:
The problem is, before that, Browser.window is null so I just can't add the event listener
(It was Browser.window and not Browser.document BTW)
It seems actually impossible to access either window or document before loading the file,
so I guess if the file is loaded synchronously, the 'load' event cannot be used...
I guess both window and document should be created in the constructor, and never reinitialized...
I couldn't see what's wrong by looking at cocktail's code. The samples also add the onload callback after calling "boot". I remember I fixed bugs similar to yours months ago, but I probably didn't fix everything.
If you can share a sample reproducing the bug, I can take a look this weekend
When browser cache is enabled (and thus, the loaded .html document is loaded from cache),
Browser.document.addEventListener('load',foo)
never triggersfoo
...The text was updated successfully, but these errors were encountered: