Disable 'strict' mode to avoid Safari bug.

See: https://github.com/jcbrand/converse.js/issues/196
and: https://github.com/jrburke/requirejs/issues/392

updates #196
This commit is contained in:
JC Brand 2014-08-04 19:38:48 +02:00
parent ca21fc00f8
commit 31decd1723

View File

@ -25,7 +25,9 @@
root.converse = factory(jQuery, _, OTR, DSA, JST, moment);
}
}(this, function ($, _, OTR, DSA, templates, moment) {
"use strict";
// "use strict";
// Cannot use this due to Safari bug.
// See https://github.com/jcbrand/converse.js/issues/196
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = { log: function () {}, error: function () {} };
}
@ -104,7 +106,7 @@
if ($.browser.webkit) {
var conversejs = document.getElementById('conversejs');
conversejs.style.display = 'none';
conversejs.style.height = conversejs.offsetHeight;
conversejs.offsetHeight = conversejs.offsetHeight;
conversejs.style.display = 'block';
}
}