From ee424f5f97edfe191caba21299fb7dfdb9c137ab Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 18 Jun 2011 10:43:11 -0400 Subject: [PATCH] only bind to orientationchange, as resize is built into it already as a fallback --- js/jquery.mobile.media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.media.js b/js/jquery.mobile.media.js index 7c0dbde0..88a958e9 100644 --- a/js/jquery.mobile.media.js +++ b/js/jquery.mobile.media.js @@ -101,7 +101,7 @@ $.mobile.addResolutionBreakpoints = function( newbps ){ $(document).bind("mobileinit.htmlclass", function(){ /* bind to orientationchange and resize to add classes to HTML element for min/max breakpoints and orientation */ - $window.bind("orientationchange.htmlclass resize.htmlclass", function(event){ + $window.bind("orientationchange.htmlclass", function(event){ //add orientation class to HTML element on flip/resize. if(event.orientation){ $html.removeClass( "portrait landscape" ).addClass( event.orientation );