mirror of
https://github.com/nasa/openmct.git
synced 2025-05-05 18:18:26 +00:00
31 lines
650 B
JavaScript
31 lines
650 B
JavaScript
/*global define,Promise*/
|
|
|
|
/**
|
|
* Module defining SomeExample. Created by vwoeltje on 11/5/14.
|
|
*/
|
|
define(
|
|
[],
|
|
function () {
|
|
"use strict";
|
|
|
|
/**
|
|
*
|
|
* @constructor
|
|
*/
|
|
function SomeExample(exampleService, message) {
|
|
return {
|
|
getText: function () {
|
|
return [
|
|
'"',
|
|
exampleService.getMessage(),
|
|
'" and "',
|
|
message,
|
|
'"'
|
|
].join("");
|
|
}
|
|
};
|
|
}
|
|
|
|
return SomeExample;
|
|
}
|
|
); |