Browse files

Merge branch 'master' of https://github.com/zynga/viewporter

  • Loading branch information...
2 parents 31de648 + ccba2a2 commit eed7ba35953daef9e42e700bda7db2db7f128d7b @pbakaus committed Jan 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/viewporter.js
View
2 src/viewporter.js
@@ -14,6 +14,7 @@ var viewporter;
// constants
ACTIVE: (('ontouchstart' in window) || (/webos/i).test(navigator.userAgent)),
+ READY: false,
// methods
isLandscape: function() {
@@ -123,6 +124,7 @@ var viewporter;
clearInterval(check);
// let everyone know we're finally ready
+ viewporter.READY = true;
that.triggerWindowEvent(!that._firstUpdateExecuted ? 'viewportready' : 'viewportchange');
that._firstUpdateExecuted = true;
}

0 comments on commit eed7ba3

Please sign in to comment.