mirror of
https://github.com/Febbweiss/filebrowser-durandal-widget.git
synced 2026-03-05 06:35:49 +00:00
14 lines
609 B
JavaScript
14 lines
609 B
JavaScript
(function(factory) {
|
|
// Support three module loading scenarios
|
|
if (typeof define === 'function' && define['amd']) {
|
|
// [1] AMD anonymous module
|
|
define(['exports', 'require'], factory);
|
|
} else if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
|
|
// [2] CommonJS/Node.js
|
|
factory(module['exports'] || exports); // module.exports is for Node.js
|
|
} else {
|
|
// [3] No module loader (plain <script> tag) - put directly in global namespace
|
|
factory(window['ko'] = {});
|
|
}
|
|
}(function(koExports, amdRequire){
|