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:
1
lib/knockout/build/fragments/amd-post.js
Normal file
1
lib/knockout/build/fragments/amd-post.js
Normal file
@@ -0,0 +1 @@
|
||||
}));
|
||||
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){
|
||||
1
lib/knockout/build/fragments/extern-post.js
Normal file
1
lib/knockout/build/fragments/extern-post.js
Normal file
@@ -0,0 +1 @@
|
||||
}());
|
||||
8
lib/knockout/build/fragments/extern-pre.js
Normal file
8
lib/knockout/build/fragments/extern-pre.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(function(undefined){
|
||||
// (0, eval)('this') is a robust way of getting a reference to the global object
|
||||
// For details, see http://stackoverflow.com/questions/14119988/return-this-0-evalthis/14120023#14120023
|
||||
var window = this || (0, eval)('this'),
|
||||
document = window['document'],
|
||||
navigator = window['navigator'],
|
||||
jQueryInstance = window["jQuery"],
|
||||
JSON = window["JSON"];
|
||||
55
lib/knockout/build/fragments/source-references.js
Normal file
55
lib/knockout/build/fragments/source-references.js
Normal file
@@ -0,0 +1,55 @@
|
||||
knockoutDebugCallback([
|
||||
'src/namespace.js',
|
||||
'src/google-closure-compiler-utils.js',
|
||||
'src/version.js',
|
||||
'src/utils.js',
|
||||
'src/utils.domData.js',
|
||||
'src/utils.domNodeDisposal.js',
|
||||
'src/utils.domManipulation.js',
|
||||
'src/memoization.js',
|
||||
'src/subscribables/extenders.js',
|
||||
'src/subscribables/subscribable.js',
|
||||
'src/subscribables/dependencyDetection.js',
|
||||
'src/subscribables/observable.js',
|
||||
'src/subscribables/observableArray.js',
|
||||
'src/subscribables/observableArray.changeTracking.js',
|
||||
'src/subscribables/dependentObservable.js',
|
||||
'src/subscribables/mappingHelpers.js',
|
||||
'src/binding/selectExtensions.js',
|
||||
'src/binding/expressionRewriting.js',
|
||||
'src/virtualElements.js',
|
||||
'src/binding/bindingProvider.js',
|
||||
'src/binding/bindingAttributeSyntax.js',
|
||||
'src/components/loaderRegistry.js',
|
||||
'src/components/defaultLoader.js',
|
||||
'src/components/customElements.js',
|
||||
'src/components/componentBinding.js',
|
||||
'src/binding/defaultBindings/attr.js',
|
||||
'src/binding/defaultBindings/checked.js',
|
||||
'src/binding/defaultBindings/css.js',
|
||||
'src/binding/defaultBindings/enableDisable.js',
|
||||
'src/binding/defaultBindings/event.js',
|
||||
'src/binding/defaultBindings/foreach.js',
|
||||
'src/binding/defaultBindings/hasfocus.js',
|
||||
'src/binding/defaultBindings/html.js',
|
||||
'src/binding/defaultBindings/ifIfnotWith.js',
|
||||
'src/binding/defaultBindings/options.js',
|
||||
'src/binding/defaultBindings/selectedOptions.js',
|
||||
'src/binding/defaultBindings/style.js',
|
||||
'src/binding/defaultBindings/submit.js',
|
||||
'src/binding/defaultBindings/text.js',
|
||||
'src/binding/defaultBindings/textInput.js',
|
||||
'src/binding/defaultBindings/uniqueName.js',
|
||||
'src/binding/defaultBindings/value.js',
|
||||
'src/binding/defaultBindings/visible.js',
|
||||
// click depends on event - The order matters for specs, which includes each file individually
|
||||
'src/binding/defaultBindings/click.js',
|
||||
'src/templating/templateEngine.js',
|
||||
'src/templating/templateRewriting.js',
|
||||
'src/templating/templateSources.js',
|
||||
'src/templating/templating.js',
|
||||
'src/binding/editDetection/compareArrays.js',
|
||||
'src/binding/editDetection/arrayToDomNodeChildren.js',
|
||||
'src/templating/native/nativeTemplateEngine.js',
|
||||
'src/templating/jquery.tmpl/jqueryTmplTemplateEngine.js'
|
||||
]);
|
||||
34
lib/knockout/build/knockout-raw.js
Normal file
34
lib/knockout/build/knockout-raw.js
Normal file
@@ -0,0 +1,34 @@
|
||||
var DEBUG = true,
|
||||
// ensure these variables are defined (even if their values are undefined)
|
||||
jQueryInstance = window.jQuery, // Use a different variable name (not 'jQuery') to avoid overwriting window.jQuery with 'undefined' on IE < 9
|
||||
require = window.require;
|
||||
|
||||
// This script adds <script> tags referencing each of the knockout.js source files in the correct order
|
||||
// It uses JSONP to fetch the list of source files from source-references.js
|
||||
(function () {
|
||||
var debugFileName = "build/knockout-raw.js";
|
||||
var sourcesReferenceFile = "build/fragments/source-references.js";
|
||||
|
||||
function getPathToScriptTagSrc(scriptTagSrc) {
|
||||
scriptTagSrc = "/" + scriptTagSrc.toLowerCase();
|
||||
var scriptTags = document.getElementsByTagName("SCRIPT");
|
||||
for (var i = 0; i < scriptTags.length; i++) {
|
||||
var src = scriptTags[i].src;
|
||||
var index = src.toLowerCase().indexOf(scriptTagSrc);
|
||||
if ((index >= 0) && index == (src.length - scriptTagSrc.length))
|
||||
return src.substring(0, index + 1);
|
||||
}
|
||||
throw "Cannot find script tag referencing " + scriptTagSrc;
|
||||
};
|
||||
|
||||
function referenceScript(url) {
|
||||
document.write("<script src='" + url + "' type='text/javascript'></script>");
|
||||
};
|
||||
|
||||
var buildFolderPath = getPathToScriptTagSrc(debugFileName);
|
||||
window.knockoutDebugCallback = function (scriptUrls) {
|
||||
for (var i = 0; i < scriptUrls.length; i++)
|
||||
referenceScript(buildFolderPath + scriptUrls[i]);
|
||||
};
|
||||
referenceScript(buildFolderPath + sourcesReferenceFile);
|
||||
})();
|
||||
Reference in New Issue
Block a user