Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-06-29 19:02:59 +03:00
parent b3fbacfcd2
commit 6caf72c5e9

View File

@ -420,9 +420,6 @@ var FeatureSetProto = {
} }
// check applicability... // check applicability...
if(f.isApplicable && !f.isApplicable.call(that, obj)){ if(f.isApplicable && !f.isApplicable.call(that, obj)){
// XXX not sure if this is the right place for this...
console.warn('Excluding unaplicable:', n, '(reccomended to exclude manually)')
unapplicable.push(n) unapplicable.push(n)
return false return false
} }
@ -493,6 +490,10 @@ var FeatureSetProto = {
var res = e.exclusive var res = e.exclusive
.filter(function(n){ .filter(function(n){
if(_exclusive.indexOf(n) < 0){ if(_exclusive.indexOf(n) < 0){
// XXX not sure if this is the right place for this...
console.warn(
'Excluding unaplicable:', n, '(reccomended to exclude manually)')
_exclusive.push(n) _exclusive.push(n)
return false return false
} }