mirror of
https://github.com/flynx/features.js.git
synced 2025-10-29 02:10:09 +00:00
minor fix/cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9d1cad7f87
commit
38c3553221
14
features.js
14
features.js
@ -924,6 +924,16 @@ var FeatureSetProto = {
|
|||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------
|
//-------------------------------------------------------------
|
||||||
|
|
||||||
|
// remove exclusivity tags that were resolved...
|
||||||
|
var isMissing = function(f){
|
||||||
|
return !(
|
||||||
|
// feature is a resolvable exclusive tag...
|
||||||
|
(exclusive[f] || []).length > 0
|
||||||
|
// feature was resolved...
|
||||||
|
&& exclusive[f]
|
||||||
|
.filter(function(f){ return list.indexOf(f) >= 0 })
|
||||||
|
.length > 0) }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
input: lst,
|
input: lst,
|
||||||
@ -940,8 +950,8 @@ var FeatureSetProto = {
|
|||||||
|| missing.length > 0
|
|| missing.length > 0
|
||||||
|| missing_suggested.length > 0) ?
|
|| missing_suggested.length > 0) ?
|
||||||
{
|
{
|
||||||
missing: missing,
|
missing: missing.filter(isMissing),
|
||||||
missing_suggested: missing_suggested,
|
missing_suggested: missing_suggested.filter(isMissing),
|
||||||
conflicts: conflicts,
|
conflicts: conflicts,
|
||||||
|
|
||||||
// fatal stuff...
|
// fatal stuff...
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-features",
|
"name": "ig-features",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "features.js",
|
"main": "features.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user