mirror of
https://github.com/flynx/features.js.git
synced 2025-10-29 18:30:11 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6331bfd752
commit
c4e6e48756
@ -1143,11 +1143,10 @@ var FeatureSetProto = {
|
|||||||
// ...we need to do this on the build stage to include correct
|
// ...we need to do this on the build stage to include correct
|
||||||
// deps and suggesntions...
|
// deps and suggesntions...
|
||||||
var exclusive = {}
|
var exclusive = {}
|
||||||
var _exclusive = {}
|
all
|
||||||
// NOTE: we do not need loop detection active here...
|
.filter(function(f){ return !!that[f].exclusive })
|
||||||
Object.keys(expand('exclusive', all, _exclusive))
|
|
||||||
.forEach(function(k){
|
.forEach(function(k){
|
||||||
(_exclusive[k] || [])
|
(that[k].exclusive || [])
|
||||||
.forEach(function(e){
|
.forEach(function(e){
|
||||||
exclusive[e] = (exclusive[e] || []).concat([k]) }) })
|
exclusive[e] = (exclusive[e] || []).concat([k]) }) })
|
||||||
|
|
||||||
@ -1289,8 +1288,8 @@ var FeatureSetProto = {
|
|||||||
//
|
//
|
||||||
// NOTE: this requires the list to be ordered from high to low
|
// NOTE: this requires the list to be ordered from high to low
|
||||||
// priority, i.e. the same order they should be loaded in...
|
// priority, i.e. the same order they should be loaded in...
|
||||||
|
// NOTE: dependency loops will throw this into and "infinite" loop...
|
||||||
//
|
//
|
||||||
// XXX dependency loops will throw this into and infinite loop...
|
|
||||||
// XXX need a better loop detection strategy...
|
// XXX need a better loop detection strategy...
|
||||||
var loop_limit = list.length
|
var loop_limit = list.length
|
||||||
do {
|
do {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user