notes and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-07 17:05:30 +03:00
parent f3dab4c3d3
commit 6c5343a8b3

View File

@ -256,6 +256,9 @@ module.UNDEFINED = ['undefined placeholder']
// <action-set>.alias('alias', .., 'action: args') // <action-set>.alias('alias', .., 'action: args')
// -> <action-set> // -> <action-set>
// //
// To enable extending in runtime .alias(..) itself is implemented as
// an action, thus all action protocols also apply.
//
// NOTE: .alias(..) is signature compatible to Action(..) / Alias(..), // NOTE: .alias(..) is signature compatible to Action(..) / Alias(..),
// supporting all the documentation and attribute definition. // supporting all the documentation and attribute definition.
// //
@ -715,13 +718,9 @@ Action.prototype.chainCall = function(context, inner){
// that this expects the target to be a string compatible with // that this expects the target to be a string compatible with
// .parseStringAction(..)... // .parseStringAction(..)...
// //
// XXX write docs...
// XXX alias parsing is dependant on the action set, move this functionality // XXX alias parsing is dependant on the action set, move this functionality
// to the ActionSet.alias(..) method/action... // to the ActionSet.alias(..) method/action...
// XXX handle alias args and pass them to the target... // XXX handle alias args and pass them to the target...
// XXX who's parsing and what syntax???
// - args syntax???
// XXX make this signature compatible with Action... (except for the last arg)
var Alias = var Alias =
module.Alias = module.Alias =
function Alias(alias, doc, ldoc, attrs, target){ function Alias(alias, doc, ldoc, attrs, target){
@ -815,6 +814,7 @@ module.MetaActions = {
return res return res
}, },
// List aliases... // List aliases...
// //
// NOTE: this will only show the aliases local to this. // NOTE: this will only show the aliases local to this.
@ -825,7 +825,6 @@ module.MetaActions = {
return Object.hasOwnProperty(this, n) return Object.hasOwnProperty(this, n)
&& that[n] instanceof Alias }) }, && that[n] instanceof Alias }) },
// XXX move this to the right spot... // XXX move this to the right spot...
parseStringAction: parseStringAction, parseStringAction: parseStringAction,
isStringAction: isStringAction, isStringAction: isStringAction,