-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.js
More file actions
36 lines (26 loc) · 778 Bytes
/
main.js
File metadata and controls
36 lines (26 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* {%= name %}
* {%= homepage %}
*
* Copyright (c) {%= grunt.template.today('yyyy') %} {%= vendor_title %}
* Licensed under the {%= licenses.join(', ') %} license{%= licenses.length === 1 ? '' : 's' %}.
*/
/* global Wirecloud */
(function (script) {
"use strict";
class Operator {
constructor(MashupPlatform, extra) {
this.MashupPlatform = MashupPlatform;
MashupPlatform.prefs.registerCallback(function (new_preferences) {
}.bind(this));
}
}
if (!('Wirecloud' in window)) {
// For testing purposes
window.Operator = Operator;
} else {
Wirecloud.registerOperatorClass(script, Operator);
}
/* test-code */
/* end-test-code */
})(document.currentScript);