-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
10,943 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
src/silverlight/Bin/ | ||
src/silverlight/obj/ | ||
bin | ||
tmp | ||
wiki | ||
jslint.xml | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
/** | ||
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill | ||
* v1.2.1 | ||
* | ||
* Copyright 2013, Moxiecode Systems AB | ||
* Released under GPL License. | ||
* | ||
* License: http://www.plupload.com/license | ||
* Contributing: http://www.plupload.com/contributing | ||
* | ||
* Date: 2014-05-14 | ||
*/ | ||
/** | ||
* Inline development version. Only to be used while developing since it uses document.write to load scripts. | ||
*/ | ||
|
||
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */ | ||
/*globals $code */ | ||
|
||
(function(exports) { | ||
"use strict"; | ||
|
||
var html = "", baseDir; | ||
var modules = {}, exposedModules = [], moduleCount = 0; | ||
|
||
var scripts = document.getElementsByTagName('script'); | ||
for (var i = 0; i < scripts.length; i++) { | ||
var src = scripts[i].src; | ||
|
||
if (src.indexOf('/moxie.dev.js') != -1) { | ||
baseDir = src.substring(0, src.lastIndexOf('/')); | ||
} | ||
} | ||
|
||
function require(ids, callback) { | ||
var module, defs = []; | ||
|
||
for (var i = 0; i < ids.length; ++i) { | ||
module = modules[ids[i]] || resolve(ids[i]); | ||
if (!module) { | ||
throw 'module definition dependecy not found: ' + ids[i]; | ||
} | ||
|
||
defs.push(module); | ||
} | ||
|
||
callback.apply(null, defs); | ||
} | ||
|
||
function resolve(id) { | ||
var target = exports; | ||
var fragments = id.split(/[.\/]/); | ||
|
||
for (var fi = 0; fi < fragments.length; ++fi) { | ||
if (!target[fragments[fi]]) { | ||
return; | ||
} | ||
|
||
target = target[fragments[fi]]; | ||
} | ||
|
||
return target; | ||
} | ||
|
||
function register(id) { | ||
var target = exports; | ||
var fragments = id.split(/[.\/]/); | ||
|
||
for (var fi = 0; fi < fragments.length - 1; ++fi) { | ||
if (target[fragments[fi]] === undefined) { | ||
target[fragments[fi]] = {}; | ||
} | ||
|
||
target = target[fragments[fi]]; | ||
} | ||
|
||
target[fragments[fragments.length - 1]] = modules[id]; | ||
} | ||
|
||
function define(id, dependencies, definition) { | ||
if (typeof id !== 'string') { | ||
throw 'invalid module definition, module id must be defined and be a string'; | ||
} | ||
|
||
if (dependencies === undefined) { | ||
throw 'invalid module definition, dependencies must be specified'; | ||
} | ||
|
||
if (definition === undefined) { | ||
throw 'invalid module definition, definition function must be specified'; | ||
} | ||
|
||
require(dependencies, function() { | ||
modules[id] = definition.apply(null, arguments); | ||
}); | ||
|
||
if (--moduleCount === 0) { | ||
for (var i = 0; i < exposedModules.length; i++) { | ||
register(exposedModules[i]); | ||
} | ||
} | ||
} | ||
|
||
function expose(ids) { | ||
exposedModules = ids; | ||
} | ||
|
||
function writeScripts() { | ||
document.write(html); | ||
} | ||
|
||
function load(path) { | ||
html += '<script type="text/javascript" src="' + baseDir + '/' + path + '"></script>\n'; | ||
moduleCount++; | ||
} | ||
|
||
// Expose globally | ||
exports.define = define; | ||
exports.require = require; | ||
|
||
expose(["moxie/core/utils/Basic","moxie/core/I18n","moxie/core/utils/Mime","moxie/core/utils/Env","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/core/EventTarget","moxie/core/utils/Encode","moxie/runtime/Runtime","moxie/runtime/RuntimeClient","moxie/file/Blob","moxie/file/File","moxie/file/FileInput","moxie/file/FileDrop","moxie/runtime/RuntimeTarget","moxie/file/FileReader","moxie/core/utils/Url","moxie/file/FileReaderSync","moxie/xhr/FormData","moxie/xhr/XMLHttpRequest","moxie/runtime/Transporter","moxie/image/Image","moxie/core/utils/Events"]); | ||
|
||
load('../../src/javascript/core/utils/Basic.js'); | ||
load('../../src/javascript/core/I18n.js'); | ||
load('../../src/javascript/core/utils/Mime.js'); | ||
load('../../src/javascript/core/utils/Env.js'); | ||
load('../../src/javascript/core/utils/Dom.js'); | ||
load('../../src/javascript/core/Exceptions.js'); | ||
load('../../src/javascript/core/EventTarget.js'); | ||
load('../../src/javascript/core/utils/Encode.js'); | ||
load('../../src/javascript/runtime/Runtime.js'); | ||
load('../../src/javascript/runtime/RuntimeClient.js'); | ||
load('../../src/javascript/file/Blob.js'); | ||
load('../../src/javascript/file/File.js'); | ||
load('../../src/javascript/file/FileInput.js'); | ||
load('../../src/javascript/file/FileDrop.js'); | ||
load('../../src/javascript/runtime/RuntimeTarget.js'); | ||
load('../../src/javascript/file/FileReader.js'); | ||
load('../../src/javascript/core/utils/Url.js'); | ||
load('../../src/javascript/file/FileReaderSync.js'); | ||
load('../../src/javascript/xhr/FormData.js'); | ||
load('../../src/javascript/xhr/XMLHttpRequest.js'); | ||
load('../../src/javascript/runtime/Transporter.js'); | ||
load('../../src/javascript/image/Image.js'); | ||
load('../../src/javascript/runtime/html5/Runtime.js'); | ||
load('../../src/javascript/runtime/html5/file/Blob.js'); | ||
load('../../src/javascript/core/utils/Events.js'); | ||
load('../../src/javascript/runtime/html5/file/FileInput.js'); | ||
load('../../src/javascript/runtime/html5/file/FileDrop.js'); | ||
load('../../src/javascript/runtime/html5/file/FileReader.js'); | ||
load('../../src/javascript/runtime/html5/xhr/XMLHttpRequest.js'); | ||
load('../../src/javascript/runtime/html5/utils/BinaryReader.js'); | ||
load('../../src/javascript/runtime/html5/image/JPEGHeaders.js'); | ||
load('../../src/javascript/runtime/html5/image/ExifParser.js'); | ||
load('../../src/javascript/runtime/html5/image/JPEG.js'); | ||
load('../../src/javascript/runtime/html5/image/PNG.js'); | ||
load('../../src/javascript/runtime/html5/image/ImageInfo.js'); | ||
load('../../src/javascript/runtime/html5/image/MegaPixel.js'); | ||
load('../../src/javascript/runtime/html5/image/Image.js'); | ||
load('../../src/javascript/runtime/flash/Runtime.js'); | ||
load('../../src/javascript/runtime/flash/file/Blob.js'); | ||
load('../../src/javascript/runtime/flash/file/FileInput.js'); | ||
load('../../src/javascript/runtime/flash/file/FileReader.js'); | ||
load('../../src/javascript/runtime/flash/file/FileReaderSync.js'); | ||
load('../../src/javascript/runtime/flash/xhr/XMLHttpRequest.js'); | ||
load('../../src/javascript/runtime/flash/runtime/Transporter.js'); | ||
load('../../src/javascript/runtime/flash/image/Image.js'); | ||
load('../../src/javascript/runtime/silverlight/Runtime.js'); | ||
load('../../src/javascript/runtime/silverlight/file/Blob.js'); | ||
load('../../src/javascript/runtime/silverlight/file/FileInput.js'); | ||
load('../../src/javascript/runtime/silverlight/file/FileDrop.js'); | ||
load('../../src/javascript/runtime/silverlight/file/FileReader.js'); | ||
load('../../src/javascript/runtime/silverlight/file/FileReaderSync.js'); | ||
load('../../src/javascript/runtime/silverlight/xhr/XMLHttpRequest.js'); | ||
load('../../src/javascript/runtime/silverlight/runtime/Transporter.js'); | ||
load('../../src/javascript/runtime/silverlight/image/Image.js'); | ||
load('../../src/javascript/runtime/html4/Runtime.js'); | ||
load('../../src/javascript/runtime/html4/file/FileInput.js'); | ||
load('../../src/javascript/runtime/html4/file/FileReader.js'); | ||
load('../../src/javascript/runtime/html4/xhr/XMLHttpRequest.js'); | ||
load('../../src/javascript/runtime/html4/image/Image.js'); | ||
|
||
writeScripts(); | ||
})(this); | ||
(function() { | ||
var baseDir = ''; | ||
var scripts = document.getElementsByTagName('script'); | ||
for (var i = 0; i < scripts.length; i++) { | ||
var src = scripts[i].src; | ||
if (src.indexOf('/moxie.dev.js') != -1) { | ||
baseDir = src.substring(0, src.lastIndexOf('/')); | ||
} | ||
} | ||
document.write('<script type="text/javascript" src="' + baseDir + '/../../src/javascript/o.js"></script>'); | ||
})(); |
Oops, something went wrong.