openmct/example/extensions/src/SomeExample.js
Victor Woeltjen 6e59b5881d [Example] Use implementations in examples
Use implementations of custom extensions in examples.
WTD-518.
2014-11-05 14:05:14 -08:00

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;
}
);