minor generalization...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-10-04 14:38:30 +03:00
parent 3e7322d17e
commit e1330408ad
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
.npm*
*.vim *.vim
*.sw[po] *.sw[po]
.git .git

View File

@ -337,7 +337,8 @@ var FeatureSetProto = {
features features
.filter(function(f){ return !!that[f].exclusive }) .filter(function(f){ return !!that[f].exclusive })
.forEach(function(k){ .forEach(function(k){
(that[k].exclusive || []) var e = that[k].exclusive
;((e instanceof Array ? e : [e]) || [])
.forEach(function(e){ .forEach(function(e){
// skip tags not explicitly requested... // skip tags not explicitly requested...
if(tag != '*' && tag.indexOf(e) < 0){ if(tag != '*' && tag.indexOf(e) < 0){

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-features", "name": "ig-features",
"version": "3.2.7", "version": "3.2.3",
"description": "", "description": "",
"main": "features.js", "main": "features.js",
"scripts": { "scripts": {