Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry <akhenry@gmail.com>2017-02-22 02:15:16 +0300
committerHenry <akhenry@gmail.com>2017-02-22 02:16:35 +0300
commit047d050cef61a319c173c3d87b004cabdf503ef9 (patch)
tree269e7884204f5fcab5fffddb13ecb075afa793f2
parent46c73998677f943c1588a6cd513afbebedc4eaa4 (diff)
[API] Renamed TypeRegistry function 'addType' to 'register'rename-typeRegistry-addType
-rw-r--r--src/api/types/TypeRegistry.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/types/TypeRegistry.js b/src/api/types/TypeRegistry.js
index 6a887850a..b90ed2506 100644
--- a/src/api/types/TypeRegistry.js
+++ b/src/api/types/TypeRegistry.js
@@ -51,7 +51,7 @@ define(['./Type'], function (Type) {
* @method addType
* @memberof module:openmct.TypeRegistry#
*/
- TypeRegistry.prototype.addType = function (typeKey, typeDef) {
+ TypeRegistry.prototype.register = function (typeKey, typeDef) {
this.types[typeKey] = new Type(typeDef);
};