Skip to content

Commit ee424f5

Browse files
author
scottjehl
committed
only bind to orientationchange, as resize is built into it already as a fallback
1 parent 90fb871 commit ee424f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ $.mobile.addResolutionBreakpoints = function( newbps ){
101101
$(document).bind("mobileinit.htmlclass", function(){
102102
/* bind to orientationchange and resize
103103
to add classes to HTML element for min/max breakpoints and orientation */
104-
$window.bind("orientationchange.htmlclass resize.htmlclass", function(event){
104+
$window.bind("orientationchange.htmlclass", function(event){
105105
//add orientation class to HTML element on flip/resize.
106106
if(event.orientation){
107107
$html.removeClass( "portrait landscape" ).addClass( event.orientation );

0 commit comments

Comments
 (0)