mirror of
https://github.com/flynx/features.js.git
synced 2025-10-29 10:20:09 +00:00
added ref to FeatureSet to .features of built object...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f90a2797d7
commit
91af35d72c
22
features.js
22
features.js
@ -898,11 +898,27 @@ var FeatureSetProto = {
|
|||||||
// -> actions
|
// -> actions
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// This will add .unapplicable to the output of .buildFeatureList(..)
|
// This will set .features on the object.
|
||||||
// and to .features of the resulting object...
|
//
|
||||||
|
// .features format:
|
||||||
|
// {
|
||||||
|
// // the current feature set object...
|
||||||
|
// FeatureSet: feature-set,
|
||||||
|
//
|
||||||
|
// // list of features not applicable in current context...
|
||||||
|
// //
|
||||||
|
// // i.e. the features that defined .isApplicable(..) and it
|
||||||
|
// // returned false when called.
|
||||||
|
// unapplicable: [ feature-tag, .. ],
|
||||||
|
//
|
||||||
|
// // output of .buildFeatureList(..)...
|
||||||
|
// ...
|
||||||
|
// }
|
||||||
//
|
//
|
||||||
// NOTE: this will store the build result in .features of the output
|
// NOTE: this will store the build result in .features of the output
|
||||||
// actions object.
|
// actions object.
|
||||||
|
// NOTE: .features is reset even if a FeatureLinearizationError error
|
||||||
|
// is thrown.
|
||||||
setup: function(obj, lst){
|
setup: function(obj, lst){
|
||||||
// no explicit object is given...
|
// no explicit object is given...
|
||||||
if(lst == null){
|
if(lst == null){
|
||||||
@ -954,6 +970,8 @@ var FeatureSetProto = {
|
|||||||
&& console.error('Hit loop limit while sorting dependencies!')
|
&& console.error('Hit loop limit while sorting dependencies!')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
features.FeatureSet = this
|
||||||
|
|
||||||
obj.features = features
|
obj.features = features
|
||||||
|
|
||||||
// fatal error -- can't load...
|
// fatal error -- can't load...
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-features",
|
"name": "ig-features",
|
||||||
"version": "3.1.11",
|
"version": "3.2.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "features.js",
|
"main": "features.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user