[Pkg-javascript-commits] [less.js] 05/58: making sure :extend warning does not bubble up
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:28:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.3.0
in repository less.js.
commit 3435d193e8ddf5924c37c7d65a94adbab2a83c35
Author: Stefan Baumgartner <sbaumg at gmail.com>
Date: Mon Jan 5 18:20:57 2015 +0100
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 06f37c5..5792ef3 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 {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list