openmct/example/composite/src/SomeOtherExample.js
Victor Woeltjen 074958317f [Example] Add composite services example
Add an example showing the use of composite services,
WTD-518.
2014-11-05 17:38:14 -08:00

25 lines
480 B
JavaScript

/*global define,Promise*/
/**
* Module defining SomeOtherExample. Created by vwoeltje on 11/5/14.
*/
define(
[],
function () {
"use strict";
/**
*
* @constructor
*/
function SomeOtherExample(someService) {
return {
getText: function () {
return someService.getMessages().join(" | ");
}
};
}
return SomeOtherExample;
}
);