-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvar_enc_lib.js
More file actions
24 lines (22 loc) · 863 Bytes
/
var_enc_lib.js
File metadata and controls
24 lines (22 loc) · 863 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
////////////////////////////////////////////////////////////////////////////////
// UMD format with encapsulated object
////////////////////////////////////////////////////////////////////////////////
// Holds global object accessible as module or through global window.
var umdtest = new function() {
// Function that prints out first UMD test.
this.First = function() {
return "first";
};
this.Second = function() {
return "Second";
};
};
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ExampleVarUMD = umdtest));
})(this, (function(exports) {
Object.defineProperty(exports, '__esModule', {
value: true
});
}));