Skip to content

Commit

Permalink
$ should have been xui. Fixes issue #47
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Oct 5, 2010
1 parent 867d010 commit d704b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ xui(window).on('load', function() {
landscapeSwitch = (window.innerWidth > w && window.innerHeight < h) && (window.innerWidth > window.innerHeight);
if (portraitSwitch || landscapeSwitch) {
window.orientation = portraitSwitch ? 0 : 90; // what about -90? Some support is better than none
$('body').fire('orientationchange'); // will this bubble up?
xui('body').fire('orientationchange'); // will this bubble up?
w = window.innerWidth;
h = window.innerHeight;
}
Expand Down

0 comments on commit d704b5b

Please sign in to comment.