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:
Luke Page
2015-02-26 19:07:45 +00:00
parent 4492a3a64e
commit 95441fa501

View File

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