From 29ffaad25daa4cfd99f5c9da4143baf89d883565 Mon Sep 17 00:00:00 2001 From: Hampton Catlin Date: Tue, 14 Oct 2014 16:02:28 -0400 Subject: [PATCH] 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. --- scss/foundation/_functions.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.2