mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 09:50:10 +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>
|
||||
//
|
||||
// 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(..),
|
||||
// supporting all the documentation and attribute definition.
|
||||
//
|
||||
@ -265,7 +268,7 @@ module.UNDEFINED = ['undefined placeholder']
|
||||
// <action-set>.alias('alias', null)
|
||||
// <action-set>.alias('alias', false)
|
||||
// -> <action-set>
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// .parseStringAction(..)...
|
||||
//
|
||||
// XXX write docs...
|
||||
// XXX alias parsing is dependant on the action set, move this functionality
|
||||
// to the ActionSet.alias(..) method/action...
|
||||
// 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 =
|
||||
module.Alias =
|
||||
function Alias(alias, doc, ldoc, attrs, target){
|
||||
@ -815,6 +814,7 @@ module.MetaActions = {
|
||||
return res
|
||||
},
|
||||
|
||||
|
||||
// List aliases...
|
||||
//
|
||||
// NOTE: this will only show the aliases local to this.
|
||||
@ -825,7 +825,6 @@ module.MetaActions = {
|
||||
return Object.hasOwnProperty(this, n)
|
||||
&& that[n] instanceof Alias }) },
|
||||
|
||||
|
||||
// XXX move this to the right spot...
|
||||
parseStringAction: parseStringAction,
|
||||
isStringAction: isStringAction,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user