now including methods by default -- still experimental...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-08 00:46:16 +03:00
parent 93cd8760a0
commit 7dcb4894f5
2 changed files with 9 additions and 3 deletions

View File

@ -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...

View File

@ -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": {