cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-06-28 02:33:29 +03:00
parent 216ed132be
commit 4041123bba

View File

@ -35,12 +35,12 @@ FeatureLinearizationError.prototype.constructor = FeatureLinearizationError
/*********************************************************************/ //---------------------------------------------------------------------
// //
// Feature attributes: // Feature attributes:
// .tag - feature tag (string) // .tag - feature tag (string)
// this is used to identify the feature, its event handlers // this is used to identify the feature, its event
// and DOM elements. // handlers and DOM elements.
// //
// .title - feature name (string | null) // .title - feature name (string | null)
// .doc - feature description (string | null) // .doc - feature description (string | null)
@ -51,20 +51,20 @@ FeatureLinearizationError.prototype.constructor = FeatureLinearizationError
// - number // - number
// - null (0, default) // - null (0, default)
// features with higher priority will be setup first, // features with higher priority will be setup first,
// features with the same priority will be run in order of // features with the same priority will be run in
// occurrence. // order of occurrence.
// .suggested - list of optional suggested features, these are not // .suggested - list of optional suggested features, these are not
// required but setup if available. // required but setup if available.
// This is useful for defining meta features but without // This is useful for defining meta features but
// making each sub-feature a strict dependency. // without making each sub-feature a strict dependency.
// .depends - feature dependencies -- tags of features that must setup // .depends - feature dependencies -- tags of features that must
// before the feature (list | null) // setup before the feature (list | null)
// NOTE: a feature can depend on an exclusive tag, this will // NOTE: a feature can depend on an exclusive tag,
// remove the need to track which specific exclusive // this will remove the need to track which
// tagged feature is loaded... // specific exclusive tagged feature is loaded...
// .exclusive - feature exclusivity tags (list | null) // .exclusive - feature exclusivity tags (list | null)
// an exclusivity group enforces that only one feature in // an exclusivity group enforces that only one feature
// it will be run, i.e. the first / highest priority. // in it will be run, i.e. the first / highest priority.
// //
// .actions - action object containing feature actions (ActionSet | null) // .actions - action object containing feature actions (ActionSet | null)
// this will be mixed into the base object on .setup() // this will be mixed into the base object on .setup()
@ -174,6 +174,7 @@ module.FeatureProto = {
} }
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// XXX is hard-coded default feature-set a good way to go??? // XXX is hard-coded default feature-set a good way to go???
// //
// Feature(obj) // Feature(obj)
@ -257,6 +258,7 @@ Feature.prototype = FeatureProto
Feature.prototype.constructor = Feature Feature.prototype.constructor = Feature
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var FeatureSetProto = { var FeatureSetProto = {
__feature__: Feature, __feature__: Feature,