From 3435d193e8ddf5924c37c7d65a94adbab2a83c35 Mon Sep 17 00:00:00 2001 From: Stefan Baumgartner Date: Mon, 5 Jan 2015 18:20:57 +0100 Subject: [PATCH] making sure :extend warning does not bubble up parent_ids contains all the selectors which this extend has to draw from. If the extend has more than one parent, it's a reference done in another selector. --- lib/less/visitors/extend-visitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/visitors/extend-visitor.js b/lib/less/visitors/extend-visitor.js index 06f37c51..5792ef35 100644 --- a/lib/less/visitors/extend-visitor.js +++ b/lib/less/visitors/extend-visitor.js @@ -105,7 +105,7 @@ ProcessExtendsVisitor.prototype = { }, checkExtendsForNonMatched: function(extendList) { extendList.filter(function(extend) { - return !extend.hasFoundMatches; + return !extend.hasFoundMatches && extend.parent_ids.length == 1; }).forEach(function(extend) { var selector = "_unknown_"; try {