Commit d38af7ed authored by JC Brand's avatar JC Brand

Also handle case where AMD is not present

parent cc99f4f9
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
// AMD/global registrations // AMD/global registrations
(function (root, factory) { (function (root, factory) {
if (console===undefined || console.log===undefined) {
console = { log: function () {}, error: function () {} };
}
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define([ define([
"Libraries/strophe" "Libraries/strophe"
...@@ -22,6 +25,8 @@ ...@@ -22,6 +25,8 @@
return factory(jQuery, console); return factory(jQuery, console);
} }
); );
} else {
return factory(jQuery, console);
} }
}(this, function ($, console) { }(this, function ($, console) {
......
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