Skip to content

Commit

Permalink
refactor(Base): template, library are base getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Jul 2, 2020
1 parent b611ca9 commit 5186efb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 22 additions & 0 deletions src/Core/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,28 @@ class Base {
return this.axon.utils;
}

/**
* Returns the template object
*
* @readonly
* @type {AxonTemplate}
* @memberof Command
*/
get template() {
return this.axon.template;
}

/**
* Returns the library Interface instance
*
* @readonly
* @type {LibraryInterface}
* @memberof Command
*/
get library() {
return this.axon.library;
}

/**
* Returns the MessageManager instance
*
Expand Down
22 changes: 0 additions & 22 deletions src/Core/Command/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,28 +147,6 @@ class Command extends Base {
return this._module;
}

/**
* Returns the template object
*
* @readonly
* @type {AxonTemplate}
* @memberof Command
*/
get template() {
return this.axon.template;
}

/**
* Returns the library Interface instance
*
* @readonly
* @type {LibraryInterface}
* @memberof Command
*/
get library() {
return this.axon.library;
}

/**
* Returns the full label for this command (label + all parent labels)
*
Expand Down

0 comments on commit 5186efb

Please sign in to comment.