mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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 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(){
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user