mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 09:50:10 +00:00
minor tweaks and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bad795a4ce
commit
afd76257b4
13
actions.js
13
actions.js
@ -2,6 +2,8 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
* XXX should this redefine its own mixin functionality or use object.js??
|
||||||
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)(
|
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)(
|
||||||
function(require){ var module={} // makes module AMD/node compatible...
|
function(require){ var module={} // makes module AMD/node compatible...
|
||||||
@ -341,9 +343,7 @@ module.UNDEFINED = ASIS(undefined)
|
|||||||
// XXX might be a good idea to add an option to return the full results...
|
// XXX might be a good idea to add an option to return the full results...
|
||||||
var Action =
|
var Action =
|
||||||
module.Action =
|
module.Action =
|
||||||
object.Constructor('Action', {
|
object.Constructor('Action', Function, {
|
||||||
__proto__: Function,
|
|
||||||
|
|
||||||
// Control how an action handles returned promises...
|
// Control how an action handles returned promises...
|
||||||
//
|
//
|
||||||
// Possible values:
|
// Possible values:
|
||||||
@ -725,9 +725,7 @@ object.Constructor('Action', {
|
|||||||
// XXX should an alias return a value???
|
// XXX should an alias return a value???
|
||||||
var Alias =
|
var Alias =
|
||||||
module.Alias =
|
module.Alias =
|
||||||
object.Constructor('Alias', {
|
object.Constructor('Alias', Action, {
|
||||||
__proto__: Action.prototype,
|
|
||||||
|
|
||||||
__new__: function(context, alias, doc, ldoc, attrs, target){
|
__new__: function(context, alias, doc, ldoc, attrs, target){
|
||||||
// precess args...
|
// precess args...
|
||||||
var args = doc instanceof Array ?
|
var args = doc instanceof Array ?
|
||||||
@ -776,7 +774,6 @@ object.Constructor('Alias', {
|
|||||||
|
|
||||||
// make the action...
|
// make the action...
|
||||||
var meth = object.parentCall(Alias.prototype.__new__, this, context, alias, doc, ldoc, attrs, func)
|
var meth = object.parentCall(Alias.prototype.__new__, this, context, alias, doc, ldoc, attrs, func)
|
||||||
//meth.__proto__ = this.__proto__
|
|
||||||
|
|
||||||
meth.func.alias = target
|
meth.func.alias = target
|
||||||
|
|
||||||
@ -1690,7 +1687,7 @@ module.MetaActions = {
|
|||||||
// XXX not sure if this is the right way to go...
|
// XXX not sure if this is the right way to go...
|
||||||
} else if(that[k].source_tag
|
} else if(that[k].source_tag
|
||||||
|| (that[k].func || {}).source_tag){
|
|| (that[k].func || {}).source_tag){
|
||||||
console.warn('Aactions: about to overwrite source tag...\n'
|
console.warn('Actions: about to overwrite source tag...\n'
|
||||||
+' from: "'
|
+' from: "'
|
||||||
+(that[k].source_tag
|
+(that[k].source_tag
|
||||||
|| (that[k].func || {}).source_tag)+'"\n'
|
|| (that[k].func || {}).source_tag)+'"\n'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.24.10",
|
"version": "3.24.11",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -23,6 +23,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/flynx/actions.js#readme",
|
"homepage": "https://github.com/flynx/actions.js#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ig-object": "^2.2.2"
|
"ig-object": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user