Permalink
Browse files

Simplified API

  • Loading branch information...
1 parent 9dc5ac0 commit d148b8b5bf94d6f04ee92e93a725bfc83b1a701a @wilsonpage committed Mar 21, 2013
Showing with 6 additions and 8 deletions.
  1. +6 −8 sass-import-once.scss
View
@@ -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.