JSDom 3.x - jsdom.jsdoom done/loaded event not firing

48 views
Skip to first unread message

Donniel Thomas

unread,
May 11, 2015, 2:16:24 PM5/11/15
to js...@googlegroups.com
Hey all,

I'm trying to use the advanced ('Hardcode') usage described in the docs for JSDOM 3.1.2. I can't seem to get the load events to fire, even with minimal markup:

https://gist.github.com/donnielrt/a2b6a3f38ee461de3d72. None of those events are firing. 

Can somebody point out what I'm doing wrong here?

Domenic Denicola

unread,
May 11, 2015, 2:19:12 PM5/11/15
to js...@googlegroups.com

I believe those callbacks are designed only to work with jsdom.env. For jsdom.jsdom, you’ll want to use just window.addEventListener(“load”, …).

 

--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsdom+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Donniel Thomas

unread,
May 11, 2015, 2:22:06 PM5/11/15
to js...@googlegroups.com
Awesome, that worked, thanks!
Reply all
Reply to author
Forward
0 new messages