Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes 'mobile-safari' class being added to non 'mobile-safari' browsers.

SC.browser.mobileSafari returns '0' which coerces to true.
  • Loading branch information...
commit b491224edd19643963ea0f87fdaff73ce3c9288a 1 parent a51318b
@publickeating publickeating authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 frameworks/bootstrap/system/loader.js
View
4 frameworks/bootstrap/system/loader.js
@@ -13,7 +13,7 @@ SC.setupBodyClassNames = function() {
if (!el) return ;
browser = SC.browser.current ;
- platform = SC.browser.windows ? 'windows' : SC.browser.mac ? 'mac' : 'other-platform' ;
+ platform = SC.browser.isWindows ? 'windows' : SC.browser.isMac ? 'mac' : 'other-platform' ;
style = document.documentElement.style;
shadows = (style.MozBoxShadow !== undefined) ||
(style.webkitBoxShadow !== undefined) ||
@@ -46,7 +46,7 @@ SC.setupBodyClassNames = function() {
}
if(browser==="safari" || browser==="chrome") classNames.push('webkit');
- if (SC.browser.mobileSafari) classNames.push('mobile-safari') ;
+ if (SC.browser.isMobileSafari) classNames.push('mobile-safari') ;
if ('createTouch' in document) classNames.push('touch');
el.className = classNames.join(' ') ;
} ;
Please sign in to comment.
Something went wrong with that request. Please try again.