mirror of
https://github.com/flynx/features.js.git
synced 2025-10-29 10:20:09 +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
|
||||
// deps and suggesntions...
|
||||
var exclusive = {}
|
||||
var _exclusive = {}
|
||||
// NOTE: we do not need loop detection active here...
|
||||
Object.keys(expand('exclusive', all, _exclusive))
|
||||
all
|
||||
.filter(function(f){ return !!that[f].exclusive })
|
||||
.forEach(function(k){
|
||||
(_exclusive[k] || [])
|
||||
(that[k].exclusive || [])
|
||||
.forEach(function(e){
|
||||
exclusive[e] = (exclusive[e] || []).concat([k]) }) })
|
||||
|
||||
@ -1289,8 +1288,8 @@ var FeatureSetProto = {
|
||||
//
|
||||
// NOTE: this requires the list to be ordered from high to low
|
||||
// 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...
|
||||
var loop_limit = list.length
|
||||
do {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user