Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Variable to variable assignment scope broken in mixins #200

Open
jscheel opened this issue Sep 28, 2012 · 0 comments
Open

Variable to variable assignment scope broken in mixins #200

jscheel opened this issue Sep 28, 2012 · 0 comments

Comments

@jscheel
Copy link

jscheel commented Sep 28, 2012

codepen.io example for testing: http://codepen.io/anon/pen/opiJc

@other-color: #ff0000;

.a {
  @color: #00ff00;
}

.b {
  @color: #0000ff;
}

.c {
  @color: @other-color;
}

// Change this mixin to each of the mixins above. .a() works, .b() works, .c() throws an error

.a();

body {
  background-color: @color;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant