This commit is contained in:
seven-phases-max
2015-04-19 19:49:27 +04:00
parent e40c2f56af
commit 7203286706
2 changed files with 10 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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();