Skip to content

Commit

Permalink
Bring back binaries and stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarjo committed May 15, 2014
1 parent 2dc74cb commit 4480eb4
Show file tree
Hide file tree
Showing 11 changed files with 10,943 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@
*.xap binary
*.min.js binary
bin/js/moxie.js binary

tests/ export-ignore
src/ export-ignore
build/ export-ignore
Jakefile.js export-ignore
package.json export-ignore
.* export-ignore
1 change: 0 additions & 1 deletion .gitignore
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
Expand Down
Binary file added bin/flash/Moxie.cdn.swf
Binary file not shown.
Binary file added bin/flash/Moxie.min.swf
Binary file not shown.
Binary file added bin/flash/Moxie.swf
Binary file not shown.
195 changes: 195 additions & 0 deletions bin/js/moxie.dev.js
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>');
})();
Loading

0 comments on commit 4480eb4

Please sign in to comment.