From 7dcb4894f5af11dae52efabd651e0e9d2ca54f9c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 8 Sep 2017 00:46:16 +0300 Subject: [PATCH] now including methods by default -- still experimental... Signed-off-by: Alex A. Naanou --- actions.js | 10 ++++++++-- package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/actions.js b/actions.js index 11ad217..bcadcda 100755 --- a/actions.js +++ b/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... diff --git a/package.json b/package.json index 5055ec0..314930b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.7.0", + "version": "3.8.0", "description": "", "main": "actions.js", "scripts": {