Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'initOrientation': function() {
- // Detect whether device supports orientationchange event, otherwise fall back to
- // the resize event.
- var supportsOrientationChange = "onorientationchange" in window,
- orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
- window.addEventListener(orientationEvent, WHMobile.Resize._updateSize, false);
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement