code: function() {
  			if (!gui.hosted) {
  				gui.orientation = window.innerWidth > window.innerHeight ? 1 : 0;
  				gui.broadcastGlobal(gui.BROADCAST_ORIENTATIONCHANGE, gui.orientation);
  			}
  		}
docs: Device orientation changed.
  TODO: gui.Device of some sorts?