WickyNilliams / enquire.js

Awesome Media Queries in JavaScript
http://wicky.nillia.ms/enquire.js/
MIT License
3.62k stars 269 forks source link

How to run the match/unmatch rules on LOAD? #90

Closed mspanish closed 10 years ago

mspanish commented 10 years ago

Hello and thanks very much for your great library.

I see I can add some logic to setup, but how the heck do I get the enquire function to run after the app launches initially, rather than just responding to screen changes?

I'm using backbone, so I'm using enquire within the view renderer.

Thanks in advance for any help you can give!

mspanish commented 10 years ago

ah seems i'm off base - the queries are running on load after all.