Skip to content

Commit

Permalink
Update _functions.scss
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HamptonMakes committed Oct 14, 2014
1 parent 54a9663 commit 29ffaad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scss/foundation/_functions.scss
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29ffaad

Please sign in to comment.