mirror of
https://github.com/flynx/actions.js.git
synced 2025-12-20 18:11:44 +00:00
some cleanup and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bd4b16387b
commit
f96888c7e7
@ -958,11 +958,12 @@ function Alias(alias, doc, ldoc, attrs, target){
|
|||||||
|
|
||||||
attrs.alias = target
|
attrs.alias = target
|
||||||
|
|
||||||
|
// NOTE: we are not parsing this directly here because the context
|
||||||
|
// may define a different .parseStringAction(..)
|
||||||
var parsed = typeof(target) == typeof('str') ? null : target
|
var parsed = typeof(target) == typeof('str') ? null : target
|
||||||
|
|
||||||
doc = (!doc && parsed) ? parsed.doc : doc
|
doc = (!doc && parsed) ? parsed.doc : doc
|
||||||
|
|
||||||
// XXX use parseStringAction.call(..)
|
|
||||||
var func = function(){
|
var func = function(){
|
||||||
// empty alias...
|
// empty alias...
|
||||||
if(target == ''){
|
if(target == ''){
|
||||||
@ -1089,9 +1090,9 @@ module.MetaActions = {
|
|||||||
|
|
||||||
// set alias...
|
// set alias...
|
||||||
} else {
|
} else {
|
||||||
var parsed = typeof(target) == typeof('str') ?
|
//var parsed = typeof(target) == typeof('str') ?
|
||||||
this.parseStringAction(target)
|
// this.parseStringAction(target)
|
||||||
: target
|
// : target
|
||||||
this[alias] = Alias.apply(null, arguments)
|
this[alias] = Alias.apply(null, arguments)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.20.1",
|
"version": "3.20.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user