mirror of
https://github.com/nasa/openmct.git
synced 2025-04-07 19:34:25 +00:00
[bug] #317 Added jsdoc note about performance
This commit is contained in:
parent
40b21e35fd
commit
5ced8e655d
@ -156,6 +156,13 @@ define(
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the default model for an object of this type. Note that
|
||||
* this method returns a clone of the original model, so if using this
|
||||
* method heavily, consider caching the result to optimize performance.
|
||||
*
|
||||
* @return {object} The default model for an object of this type.
|
||||
*/
|
||||
TypeImpl.prototype.getInitialModel = function () {
|
||||
return JSON.parse(JSON.stringify(this.typeDef.model || {}));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user