mirror of
https://github.com/flynx/features.js.git
synced 2025-10-29 10:20:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c997962d47
commit
f90a2797d7
@ -400,7 +400,7 @@ var FeatureSetProto = {
|
|||||||
// NOTE: there can be a case when an exclusive alias is used but
|
// NOTE: there can be a case when an exclusive alias is used but
|
||||||
// no feature in a group is loaded, in this case which
|
// no feature in a group is loaded, in this case which
|
||||||
// feature is actually loaded depends on the load order...
|
// feature is actually loaded depends on the load order...
|
||||||
var sortExclusive = function(){
|
var sortExclusive = function(features){
|
||||||
var loaded = Object.keys(features)
|
var loaded = Object.keys(features)
|
||||||
Object.keys(exclusive)
|
Object.keys(exclusive)
|
||||||
.forEach(function(k){
|
.forEach(function(k){
|
||||||
@ -592,7 +592,7 @@ var FeatureSetProto = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
sortExclusive()
|
sortExclusive(features)
|
||||||
|
|
||||||
return features
|
return features
|
||||||
}
|
}
|
||||||
@ -636,7 +636,7 @@ var FeatureSetProto = {
|
|||||||
// Handle exclusive feature groups and aliases...
|
// Handle exclusive feature groups and aliases...
|
||||||
var conflicts = {}
|
var conflicts = {}
|
||||||
var done = []
|
var done = []
|
||||||
loaded
|
Object.keys(features)
|
||||||
.forEach(function(f){
|
.forEach(function(f){
|
||||||
// alias...
|
// alias...
|
||||||
while(f in exclusive && done.indexOf(f) < 0){
|
while(f in exclusive && done.indexOf(f) < 0){
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-features",
|
"name": "ig-features",
|
||||||
"version": "3.1.10",
|
"version": "3.1.11",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "features.js",
|
"main": "features.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user