Skip to content

Commit

Permalink
Remove forked additional support-legacy-browser() to match Compass 1.…
Browse files Browse the repository at this point in the history
…0.0.
  • Loading branch information
JohnAlbin committed Aug 26, 2014
1 parent 8e2cc1d commit 1455ed8
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions _normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,6 @@ $indent-amount: 40px !default;
@import "compass/typography/vertical_rhythm";


// To work around a bug in compass-core 1.0.0.rc.0, we override Compass'
// support-legacy-browser() function with a version of our own.
// @TODO Remove this monkey patch after it's fixed in Compass.
// @see https://github.com/chriseppstein/compass/pull/1524
// @see also https://github.com/chriseppstein/compass/pull/1520
@function support-legacy-browser($browser, $min-version, $max-version: null, $threshold: $critical-usage-threshold) {
@if not index($supported-browsers, $browser) {
@return false;
}
// Check agaist usage stats and declared minimums
$min-required-version: map-get($browser-minimum-versions, $browser);
$supported-browser: ($min-required-version and
compare-browser-versions($browser, $max-version or $min-version, $min-required-version) >= 0);
// If a minimum required version is specified and the default threshold is
// used, we only check the declared browser minimums.
@if ($threshold == $critical-usage-threshold) and $min-required-version {
@return $supported-browser;
}
$usage: if($max-version,
omitted-usage($browser, $min-version, $max-version),
omitted-usage($browser, $min-version));
@return $usage > $threshold or $supported-browser;
}

/* Base
========================================================================== */

Expand Down

0 comments on commit 1455ed8

Please sign in to comment.