Advertisement
Guest User

Untitled

a guest
Feb 21st, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. 'initOrientation': function() {
  2. // Detect whether device supports orientationchange event, otherwise fall back to
  3. // the resize event.
  4. var supportsOrientationChange = "onorientationchange" in window,
  5. orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
  6. window.addEventListener(orientationEvent, WHMobile.Resize._updateSize, false);
  7. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement