123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- define([], function () {
- 'use strict';
- var BaseFeature = function () {
- function BaseFeature(options) {
- _classCallCheck(this, BaseFeature);
- this.content = options.content;
- this.dashboardAPI = options.dashboardAPI;
- console.debug('******* feature created');
- }
- BaseFeature.prototype.initialize = function initialize() {
- return Promise.resolve();
- };
- BaseFeature.prototype.getAPI = function getAPI() {
- var _this = this;
- return {
- testAPI: function testAPI() {
- console.debug('hello from ' + _this.content.getId());
- }
- };
- };
- return BaseFeature;
- }();
- return BaseFeature;
- });
|