Commit 77b9d102 authored by Tristan Cavelier's avatar Tristan Cavelier

complex_queries.js not amd compatible -> fixed

parent 009bc48c
...@@ -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.
* *
......
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;
}
}());
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