diff --git a/ui (gen4)/features/alias.js b/ui (gen4)/features/alias.js index 2ee0e1fa..0f68dbc2 100755 --- a/ui (gen4)/features/alias.js +++ b/ui (gen4)/features/alias.js @@ -29,9 +29,20 @@ module.Alias = core.ImageGridFeatures.Feature({ }, handlers: [ + // load aliases... + ['start', + function(){ + var that = this + var aliases = this.config.aliases || {} + + Object.keys(aliases) + .forEach(function(alias){ + that.alias(alias, aliases[alias]) }) + }], + // store aliases in .config.aliases + // XXX should we guard from overriding actions??? ['alias', function(_, alias, target){ - console.log(alias, target) // remove alias... // XXX is this test enough??? ...see ActionSet.alias(..) if(arguments.length == 3