Skip to content

Instantly share code, notes, and snippets.

@jlubean
jlubean / orientationchange.js
Created August 7, 2012 16:32
"orientationchange" Event Polyfill
/**
* "orientationchange" Event Polyfill
* by Jason LuBean
*
* This polyfill allows you to use "window.orientation"
* and to bind to the "orientationchange" event. It has
* no dependencies on any libraries, but has support for
* using jQuery to bind to the "orientationchange" event.
*
* Because IE8 does not allow you to use attachEvent /