org.hisrc.jsonix.Jsonix.Jsonix.footer.fragmentjs Maven / Gradle / Ivy
// Complete Jsonix script is included above
return { Jsonix: Jsonix };
};
// If the require function exists ...
if (typeof require === 'function') {
// ... but the define function does not exists
if (typeof define !== 'function') {
// Load the define function via amdefine
var define = require('amdefine')(module);
// If we're not in browser
if (typeof window === 'undefined')
{
// Require xmldom, xmlhttprequest and fs
define(["xmldom", "xmlhttprequest", "fs"], _jsonix_factory);
}
else
{
// We're probably in browser, maybe browserify
// Do not require xmldom, xmlhttprequest as they'r provided by the browser
// Do not require fs since file system is not available anyway
define([], _jsonix_factory);
}
}
else {
// Otherwise assume we're in the browser/RequireJS environment
// Load the module without xmldom and xmlhttprequests dependencies
define([], _jsonix_factory);
}
}
// If the require function does not exists, we're not in Node.js and therefore in browser environment
else
{
// Just call the factory and set Jsonix as global.
var Jsonix = _jsonix_factory().Jsonix;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy