Fix bug 902916 - calendar-occurrence-prompt is not initialized correctly [Error: 'ReferenceError: cal is not defined' in calUtils.js]. r=philipp,a=philipp CLOSED TREE

This commit is contained in:
Markus Adrario 2013-08-12 16:18:55 +02:00
Родитель da056205d6
Коммит 091e652582
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -11,6 +11,12 @@ Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
/* HACK: Loading calUtils.jsm here is a hack and should be fixed asap. If you
* see this here after Lightning 2.6, please drop everything and make it go
* away. See bug 902916 for details.
*/
Components.utils.import("resource://calendar/modules/calUtils.jsm");
function _calIcalCreator(cid, iid) {
return function(icalString) {
let thing = Components.classes[cid].createInstance(iid);