sorted breakpoints ascending after addition

This commit is contained in:
scottjehl 2010-11-17 11:19:14 -05:00
parent 2ade27bdcf
commit 82c48b2311

View file

@ -84,6 +84,7 @@ $.mobile.addResolutionBreakpoints = function( newbps ){
else {
resolutionBreakpoints.push( newbps );
}
resolutionBreakpoints.sort(function(a,b){ return a-b; })
detectResolutionBreakpoints();
}