ccampbell / gator

Event delegation in Javascript
http://craig.is/riding/gators
492 stars 46 forks source link

Check if window exists before window.Gator = Gator #22

Open rubennorte opened 9 years ago

rubennorte commented 9 years ago

That is the only thing in the whole file that makes this package not to work in Node.js. If you check if window exists before assigning the variable, we would be able to use it with a DOM implementation for Node.

jasonkarns commented 6 years ago

Agree. This package needs UMD export