mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 02:10:09 +00:00
notes and docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f3dab4c3d3
commit
6c5343a8b3
11
actions.js
11
actions.js
@ -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.
|
||||||
//
|
//
|
||||||
@ -265,7 +268,7 @@ module.UNDEFINED = ['undefined placeholder']
|
|||||||
// <action-set>.alias('alias', null)
|
// <action-set>.alias('alias', null)
|
||||||
// <action-set>.alias('alias', false)
|
// <action-set>.alias('alias', false)
|
||||||
// -> <action-set>
|
// -> <action-set>
|
||||||
//
|
//
|
||||||
// NOTE: only own aliases can be deleted via .alias(.., null|false)
|
// NOTE: only own aliases can be deleted via .alias(.., null|false)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user