mirror of
https://github.com/nasa/openmct.git
synced 2025-05-22 18:23:59 +00:00
27 lines
565 B
JavaScript
27 lines
565 B
JavaScript
/*global define,Promise*/
|
|
|
|
/**
|
|
* Module defining SomeDecorator. Created by vwoeltje on 11/5/14.
|
|
*/
|
|
define(
|
|
[],
|
|
function () {
|
|
"use strict";
|
|
|
|
/**
|
|
*
|
|
* @constructor
|
|
*/
|
|
function SomeDecorator(someProvider) {
|
|
return {
|
|
getMessages: function () {
|
|
return someProvider.getMessages().map(function (msg) {
|
|
return msg.toLocaleUpperCase();
|
|
});
|
|
}
|
|
};
|
|
}
|
|
|
|
return SomeDecorator;
|
|
}
|
|
); |