mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
only bind to orientationchange, as resize is built into it already as a fallback
This commit is contained in:
parent
90fb871ee8
commit
ee424f5f97
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue