bdougherty / BigScreen

A simple library for using the JavaScript Full Screen API.
https://brad.is/coding/BigScreen/
MIT License
710 stars 77 forks source link

Add on/off methods for subscribing to events #15

Open okcoker opened 10 years ago

okcoker commented 10 years ago

Instead of having to replace the actual onenter, onchange, onexit, onerror functions right on the BigScreen object, now you can subscribe to them like:

BigScreen.on('enter', function() { ... })