cloudhead/less.js — Issue #620: Javascript variable in mixin guards
Author: gheljenor
Created: 2012-02-05 11:02:29+00:00
State: open

@is-ie: `js_is_ie_variable`; //1 or 0

.mixin_with_browser_check (@param) when (@is-ie = 0) {
.....
}

.mixin_with_browser_check (@param) when (@is-ie = 1) {
.....
}

When @is-ie loading from javascript variable it does not work properly. If we place @is-ie: 1 or @is-ie: 0 - that's work fine. Is there any way to use js variables in guards?

P.S. Sorry for my bad english