minor fixes and tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-27 20:51:34 +03:00
parent f23f226475
commit 9108aa6948
2 changed files with 7 additions and 2 deletions

View File

@ -694,7 +694,7 @@ module.MetaActions = {
// XXX is this simpler to use than the original .getHandlerList(..) // XXX is this simpler to use than the original .getHandlerList(..)
// XXX rename this.... // XXX rename this....
getHandlers: function(name){ getHandlers: function(name){
return this.getHandlerList(name) return (this.getHandlerList || MetaActions.getHandlerList).call(this, name)
.map(function(a){ .map(function(a){
var res = { var res = {
// action doc... // action doc...
@ -1303,9 +1303,12 @@ function Actions(a, b){
var test = var test =
module.test = module.test =
function test(){ function test(){
// NOTE: this is needed only to add action methods to TestActions...
var BaseActions = new ActionSet()
var TestActions = var TestActions =
module.TestActions = module.TestActions =
Actions({ Actions(BaseActions, {
testActionGen1: ['baisc test action...', testActionGen1: ['baisc test action...',
'some extra info', 'some extra info',
function(){ function(){

View File

@ -115,6 +115,8 @@ function makeConstructor(name, a, b){
var proto = b == null ? a : b var proto = b == null ? a : b
var cls_proto = b == null ? b : a var cls_proto = b == null ? b : a
proto = Object.create(proto)
var _constructor = function Constructor(){ var _constructor = function Constructor(){
/* /*
// XXX BUG: if the constructor is called from it's instance this will // XXX BUG: if the constructor is called from it's instance this will