Commit e4c1e6ed authored by Tristan Cavelier's avatar Tristan Cavelier

jio.js and complex_queries.js updated

parent 88a73c47
...@@ -9,10 +9,17 @@ ...@@ -9,10 +9,17 @@
* *
* @module complex_queries * @module complex_queries
*/ */
var complex_queries; // define([module_name], [dependencies], module);
(function () { (function (module) {
"use strict"; "use strict";
var to_export = {}, module_name = "complex_queries"; if (typeof define === 'function' && define.amd) {
return define(module);
}
window.complex_queries = module();
}(function () {
"use strict";
var to_export = {};
/** /**
* Add a secured (write permission denied) property to an object. * Add a secured (write permission denied) property to an object.
* *
...@@ -1593,23 +1600,5 @@ query_class_dict.complex = ComplexQuery; ...@@ -1593,23 +1600,5 @@ query_class_dict.complex = ComplexQuery;
_export("ComplexQuery", ComplexQuery); _export("ComplexQuery", ComplexQuery);
if (typeof define === "function" && define.amd) { return to_export;
define(to_export); }));
} else if (typeof window === "object") {
Object.defineProperty(window, module_name, {
configurable: false,
enumerable: true,
writable: false,
value: to_export
});
} else if (typeof exports === "object") {
var i;
for (i in to_export) {
if (to_export.hasOwnProperty(i)) {
exports[i] = to_export[i];
}
}
} else {
complex_queries = to_export;
}
}());
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
* http://www.gnu.org/licenses/lgpl.html * http://www.gnu.org/licenses/lgpl.html
*/ */
(function (scope, hex_md5) { // define([module_name], [dependencies], module);
(function (dependencies, module) {
"use strict"; "use strict";
var localstorage; if (typeof define === 'function' && define.amd) {
return define(dependencies, module);
}
window.jIO = module({hex_md5: hex_md5});
}(['md5'], function (md5) {
"use strict";
var localstorage, hex_md5 = md5.hex_md5;
if (typeof localStorage !== "undefined") { if (typeof localStorage !== "undefined") {
localstorage = { localstorage = {
getItem: function (item) { getItem: function (item) {
...@@ -2841,11 +2849,5 @@ var jioNamespace = (function (spec) { ...@@ -2841,11 +2849,5 @@ var jioNamespace = (function (spec) {
return that; return that;
}()); }());
return jioNamespace;
Object.defineProperty(scope, "jIO", { }));
configurable: false,
enumerable: false,
writable: false,
value: jioNamespace
});
}(window, hex_md5));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment