mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor fixes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f23f226475
commit
9108aa6948
@ -694,7 +694,7 @@ module.MetaActions = {
|
||||
// XXX is this simpler to use than the original .getHandlerList(..)
|
||||
// XXX rename this....
|
||||
getHandlers: function(name){
|
||||
return this.getHandlerList(name)
|
||||
return (this.getHandlerList || MetaActions.getHandlerList).call(this, name)
|
||||
.map(function(a){
|
||||
var res = {
|
||||
// action doc...
|
||||
@ -1303,9 +1303,12 @@ function Actions(a, b){
|
||||
var test =
|
||||
module.test =
|
||||
function test(){
|
||||
// NOTE: this is needed only to add action methods to TestActions...
|
||||
var BaseActions = new ActionSet()
|
||||
|
||||
var TestActions =
|
||||
module.TestActions =
|
||||
Actions({
|
||||
Actions(BaseActions, {
|
||||
testActionGen1: ['baisc test action...',
|
||||
'some extra info',
|
||||
function(){
|
||||
|
||||
@ -115,6 +115,8 @@ function makeConstructor(name, a, b){
|
||||
var proto = b == null ? a : b
|
||||
var cls_proto = b == null ? b : a
|
||||
|
||||
proto = Object.create(proto)
|
||||
|
||||
var _constructor = function Constructor(){
|
||||
/*
|
||||
// XXX BUG: if the constructor is called from it's instance this will
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user