mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Remove obsolete script to decruft
This commit is contained in:
parent
471fe7453b
commit
7c3bfae0a6
@ -1,44 +0,0 @@
|
||||
define(function () {
|
||||
|
||||
/**
|
||||
* Defines a kind of view.
|
||||
* @interface
|
||||
*/
|
||||
function ViewDefinition() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get metadata about this view, as may be used in the user interface
|
||||
* to present options for this view.
|
||||
* @param {*} object the object to be shown in this view
|
||||
* @returns {mct.ViewMetadata} metadata about this view
|
||||
*/
|
||||
ViewDefinition.prototype.metadata = function (object) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Instantiate a new view of this object. Callers of this method are
|
||||
* responsible for calling `canView` before instantiating views in this
|
||||
* manner.
|
||||
*
|
||||
* @param {*} object the object to be shown in this view
|
||||
* @returns {mct.View} a view of this object
|
||||
*/
|
||||
ViewDefinition.prototype.view = function (object) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if this view is capable of showing this object. Users of
|
||||
* views should use this method before calling `show`.
|
||||
*
|
||||
* Subclasses should override this method to control the applicability
|
||||
* of this view to other objects.
|
||||
*
|
||||
* @param {*} object the object to be shown in this view
|
||||
* @returns {boolean} true if this view is applicable to this object
|
||||
*/
|
||||
ViewDefinition.prototype.canView = function (object) {
|
||||
};
|
||||
|
||||
return ViewDefinition;
|
||||
});
|
Loading…
Reference in New Issue
Block a user