changed .aliases to show all aliases and added .localAliases...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-29 20:56:39 +03:00
parent 56cea2356b
commit 635a107f7e
2 changed files with 7 additions and 4 deletions

View File

@ -829,13 +829,16 @@ module.MetaActions = {
// List aliases... // List aliases...
// //
// NOTE: this will only show the aliases local to this.
get aliases(){ get aliases(){
var that = this var that = this
return this.actions return this.actions
.filter(function(n){ .filter(function(n){
return that.hasOwnProperty(n) return that[n] instanceof Alias }) },
&& that[n] instanceof Alias }) }, get localAliases(){
var that = this
return this.aliases
.filter(function(n){
return that.hasOwnProperty(n) })},
// XXX move this to the right spot... // XXX move this to the right spot...
parseStringAction: parseStringAction, parseStringAction: parseStringAction,

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-actions", "name": "ig-actions",
"version": "3.24.9", "version": "3.24.10",
"description": "", "description": "",
"main": "actions.js", "main": "actions.js",
"scripts": { "scripts": {