From: Hampton Catlin Date: Tue, 14 Oct 2014 20:02:28 +0000 (-0400) Subject: Update _functions.scss X-Git-Tag: v5.4.7~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5933%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update _functions.scss Updating the exports() function to work with Sass 3.2/3.3 and libsass 2.0 which return false for index() AND add support for Sass 3.4 and libsass 3.0 with the new behaviour. --- diff --git a/scss/foundation/_functions.scss b/scss/foundation/_functions.scss index f018ced0e..e7eb856d9 100644 --- a/scss/foundation/_functions.scss +++ b/scss/foundation/_functions.scss @@ -9,7 +9,8 @@ $rem-base: 16px !default; // We use this to prevent styles from being loaded multiple times for compenents that rely on other components. $modules: () !default; @mixin exports($name) { - @if (index($modules, $name) == false) { + $module_index: index($modules, $name); + @if (($module_index == null) or ($module_index == false)) { $modules: append($modules, $name); @content; }