mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 09:50:10 +00:00
changed .aliases to show all aliases and added .localAliases...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
56cea2356b
commit
635a107f7e
@ -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,
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user