mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-23 15:44:43 +00:00
sorted breakpoints ascending after addition
This commit is contained in:
parent
2ade27bdcf
commit
82c48b2311
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ $.mobile.addResolutionBreakpoints = function( newbps ){
|
|||
else {
|
||||
resolutionBreakpoints.push( newbps );
|
||||
}
|
||||
resolutionBreakpoints.sort(function(a,b){ return a-b; })
|
||||
detectResolutionBreakpoints();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue