mirror of
https://github.com/Febbweiss/filebrowser-durandal-widget.git
synced 2026-03-05 14:45:43 +00:00
init
This commit is contained in:
13
lib/knockout/build/fragments/amd-pre.js
Normal file
13
lib/knockout/build/fragments/amd-pre.js
Normal file
@@ -0,0 +1,13 @@
|
||||
(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){
|
||||
Reference in New Issue
Block a user