mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 00:50:49 +00:00
removed redundant code
This commit is contained in:
parent
d8d0f22889
commit
0218f42e2b
@ -52,18 +52,6 @@ define(
|
|||||||
|
|
||||||
HistoricalTableController.prototype = Object.create(TableController.prototype);
|
HistoricalTableController.prototype = Object.create(TableController.prototype);
|
||||||
|
|
||||||
function fastPromise(value) {
|
|
||||||
if (value && value.then) {
|
|
||||||
return value;
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
then: function (callback) {
|
|
||||||
return fastPromise(callback(value));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels outstanding processing
|
* Cancels outstanding processing
|
||||||
* @private
|
* @private
|
||||||
|
Loading…
x
Reference in New Issue
Block a user