mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 01:18:52 +00:00
074958317f
Add an example showing the use of composite services, WTD-518.
27 lines
568 B
JavaScript
27 lines
568 B
JavaScript
/*global define,Promise*/
|
|
|
|
/**
|
|
* Module defining SomeOtherDecorator. Created by vwoeltje on 11/5/14.
|
|
*/
|
|
define(
|
|
[],
|
|
function () {
|
|
"use strict";
|
|
|
|
/**
|
|
*
|
|
* @constructor
|
|
*/
|
|
function SomeOtherDecorator(someProvider) {
|
|
return {
|
|
getMessages: function () {
|
|
return someProvider.getMessages().map(function (msg) {
|
|
return msg + "...";
|
|
});
|
|
}
|
|
};
|
|
}
|
|
|
|
return SomeOtherDecorator;
|
|
}
|
|
); |