mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 09:50:10 +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
|
||||
// object name/reference ('O'), thus enabling an action to be
|
||||
// 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.
|
||||
//
|
||||
//
|
||||
// 4) Action attributes
|
||||
// XXX
|
||||
//
|
||||
//
|
||||
//
|
||||
// Alias protocols:
|
||||
//
|
||||
@ -1528,15 +1534,15 @@ module.MetaActions = {
|
||||
prop.configurable = true
|
||||
Object.defineProperty(that, k, prop)
|
||||
|
||||
|
||||
// actions and other attributes...
|
||||
} else {
|
||||
var attr = from[k]
|
||||
if(all_attr_types
|
||||
//|| attr instanceof Function
|
||||
|| attr instanceof Function
|
||||
|| attr instanceof Action){
|
||||
that[k] = attr
|
||||
}
|
||||
|
||||
// source tag actions...
|
||||
if(source_tag && attr instanceof Action){
|
||||
// existing tag...
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-actions",
|
||||
"version": "3.7.0",
|
||||
"version": "3.8.0",
|
||||
"description": "",
|
||||
"main": "actions.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user