vendor/lib/visitor/evaluator.js in stylus-source-0.28.1 vs vendor/lib/visitor/evaluator.js in stylus-source-0.28.2
- old
+ new
@@ -605,12 +605,12 @@
* Visit Extend.
*/
Evaluator.prototype.visitExtend = function(extend){
var selector = extend.selector;
- var block = this.targetBlock || this.currentBlock;
+ var block = !this.currentBlock.node.extends && this.targetBlock.node.extends ? this.targetBlock : this.currentBlock;
block.node.extends.push(selector);
- return nodes.null;
+ return nodes.null;
};
/**
* Visit Import.
*/