mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Do not require every extend is matched inside every media query and directive - removes alot of false warnings. Fixes #2499
This commit is contained in:
@@ -436,7 +436,6 @@ ProcessExtendsVisitor.prototype = {
|
||||
},
|
||||
visitMediaOut: function (mediaNode) {
|
||||
var lastIndex = this.allExtendsStack.length - 1;
|
||||
this.checkExtendsForNonMatched(this.allExtendsStack[lastIndex]);
|
||||
this.allExtendsStack.length = lastIndex;
|
||||
},
|
||||
visitDirective: function (directiveNode, visitArgs) {
|
||||
@@ -446,7 +445,6 @@ ProcessExtendsVisitor.prototype = {
|
||||
},
|
||||
visitDirectiveOut: function (directiveNode) {
|
||||
var lastIndex = this.allExtendsStack.length - 1;
|
||||
this.checkExtendsForNonMatched(this.allExtendsStack[lastIndex]);
|
||||
this.allExtendsStack.length = lastIndex;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user