mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 10:20:09 +00:00
now including methods by default -- still experimental...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
93cd8760a0
commit
7dcb4894f5
10
actions.js
10
actions.js
@ -143,6 +143,8 @@ module.UNDEFINED = ['undefined placeholder']
|
|||||||
// but is implicit, and not dependant on the original containing
|
// but is implicit, and not dependant on the original containing
|
||||||
// object name/reference ('O'), thus enabling an action to be
|
// object name/reference ('O'), thus enabling an action to be
|
||||||
// referenced and called from any object and still chain correctly.
|
// referenced and called from any object and still chain correctly.
|
||||||
|
// NOTE: if a normal method is encountered in the inheritance chain, it
|
||||||
|
// will shadow all the actions beyond it.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -247,6 +249,10 @@ module.UNDEFINED = ['undefined placeholder']
|
|||||||
// an overhead on all the actions if not done carefully.
|
// an overhead on all the actions if not done carefully.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
// 4) Action attributes
|
||||||
|
// XXX
|
||||||
|
//
|
||||||
|
//
|
||||||
//
|
//
|
||||||
// Alias protocols:
|
// Alias protocols:
|
||||||
//
|
//
|
||||||
@ -1528,15 +1534,15 @@ module.MetaActions = {
|
|||||||
prop.configurable = true
|
prop.configurable = true
|
||||||
Object.defineProperty(that, k, prop)
|
Object.defineProperty(that, k, prop)
|
||||||
|
|
||||||
|
|
||||||
// actions and other attributes...
|
// actions and other attributes...
|
||||||
} else {
|
} else {
|
||||||
var attr = from[k]
|
var attr = from[k]
|
||||||
if(all_attr_types
|
if(all_attr_types
|
||||||
//|| attr instanceof Function
|
|| attr instanceof Function
|
||||||
|| attr instanceof Action){
|
|| attr instanceof Action){
|
||||||
that[k] = attr
|
that[k] = attr
|
||||||
}
|
}
|
||||||
|
|
||||||
// source tag actions...
|
// source tag actions...
|
||||||
if(source_tag && attr instanceof Action){
|
if(source_tag && attr instanceof Action){
|
||||||
// existing tag...
|
// existing tag...
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.7.0",
|
"version": "3.8.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user