Skip to content

Commit

Permalink
Simplified API
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonpage committed Mar 21, 2013
1 parent 9dc5ac0 commit d148b8b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions sass-import-once.scss
@@ -1,9 +1,7 @@
$imported: () !default;
@function not-imported($file) {
@if index($imported, $file) {
@return false;
} @else {
$imported: append($imported, $file);
@return true;
}
$modules: () !default;
@mixin exports($name) {
@if (index($modules, $name) == false) {
$modules: append($modules, $name);
@content;
}
}

0 comments on commit d148b8b

Please sign in to comment.