Igosuki / compass-mixins

A collection of compass' stylesheet for bower dependencies and libsass
Other
592 stars 197 forks source link

initialise variable which would otherwise be unavailable in this scope #73

Closed juliankrispel closed 8 years ago

juliankrispel commented 8 years ago

So I'm not sure why this worked before (maybe because of an outdated lib-sass) but I'm getting a reference error if I don't do this, and that's correct behaviour. In Sass, blocks have their own scope so if you write

@if true == true {
  $foo: 'bar';
}

@debug($foo);

an error will get thrown because $foo won't exist in the same scope.

nsams commented 8 years ago

I'm facing the same issue, please merge this PR

xzyfer commented 8 years ago

Fixed in #86.