mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fix #2558
This commit is contained in:
@@ -152,7 +152,7 @@ Definition.prototype.matchCondition = function (args, context) {
|
||||
new contexts.Eval(context,
|
||||
[this.evalParams(context, /* the parameter variables*/
|
||||
new contexts.Eval(context, this.frames ? this.frames.concat(context.frames) : context.frames), args, [])]
|
||||
.concat(this.frames) // the parent namespace/mixin frames
|
||||
.concat(this.frames || []) // the parent namespace/mixin frames
|
||||
.concat(context.frames)))) { // the current environment frames
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -269,3 +269,12 @@
|
||||
#guarded-deeper {
|
||||
#top > #deeper > .mixin(1);
|
||||
}
|
||||
|
||||
// namespaced & guarded mixin in root
|
||||
// outputs nothing but should pass:
|
||||
|
||||
@guarded-mixin-for-root: true;
|
||||
#ns {
|
||||
.guarded-mixin-for-root() when (@guarded-mixin-for-root) {}
|
||||
}
|
||||
#ns > .guarded-mixin-for-root();
|
||||
|
||||
Reference in New Issue
Block a user