mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 18:00:11 +00:00
introspection tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0d1a788410
commit
7f68c713fb
33
actions.js
33
actions.js
@ -702,22 +702,23 @@ function Alias(alias, doc, ldoc, attrs, target){
|
||||
|
||||
doc = (!doc && parsed) ? parsed.doc : doc
|
||||
|
||||
var meth = Action(alias,
|
||||
doc,
|
||||
null,
|
||||
attrs,
|
||||
function(){
|
||||
// parse the target...
|
||||
// XXX should we cache here???
|
||||
var action = parsed || this.parseStringAction(target)
|
||||
var args = action.arguments.slice()
|
||||
var func = function(){
|
||||
// parse the target...
|
||||
// XXX should we cache here???
|
||||
var action = parsed || this.parseStringAction(target)
|
||||
var args = action.arguments.slice()
|
||||
|
||||
// XXX merge args...
|
||||
// XXX
|
||||
// XXX merge args...
|
||||
// XXX
|
||||
|
||||
// call the alias...
|
||||
return this[action.action].apply(this, args)
|
||||
})
|
||||
// call the alias...
|
||||
return this[action.action].apply(this, args)
|
||||
}
|
||||
func.toString = function(){
|
||||
return meth.alias.code || meth.alias }
|
||||
|
||||
// make the action...
|
||||
var meth = Action(alias, doc, null, attrs, func)
|
||||
meth.__proto__ = this.__proto__
|
||||
|
||||
meth.func.alias = target
|
||||
@ -1664,7 +1665,8 @@ module.MetaActions = {
|
||||
+ (cur.pre.source_tag ?
|
||||
normalizeTabs('// Source tag: ' + cur.pre.source_tag) + p : '')
|
||||
// code...
|
||||
//+ normalizeTabs(cur.pre.toString()).replace(/\n/g, p)
|
||||
+ normalizeTabs(cur.pre.toString()).replace(/\n/g, p)
|
||||
/*
|
||||
+ normalizeTabs(
|
||||
!cur.pre.alias ?
|
||||
cur.pre.toString()
|
||||
@ -1672,6 +1674,7 @@ module.MetaActions = {
|
||||
cur.pre.alias
|
||||
: cur.pre.alias.code
|
||||
).replace(/\n/g, p)
|
||||
*/
|
||||
+ p
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-actions",
|
||||
"version": "3.5.0",
|
||||
"version": "3.5.1",
|
||||
"description": "",
|
||||
"main": "actions.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user