Do not bind to Zotero.Intl before it has been imported

This commit is contained in:
Sylvester Keil 2018-07-30 13:22:20 +02:00
parent 4a97529b66
commit 94539ceac5
No known key found for this signature in database
GPG key ID: 878933BCEAB25A10

View file

@ -1410,12 +1410,13 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
newClass.prototype.constructor = newClass;
}
this.getLocaleCollation = function () {
return Zotero.Intl.collation;
};
this.localeCompare = Zotero.Intl.compare;
this.localeCompare = function (...args) {
return Zotero.Intl.compare(...args);
};
/*
* Sets font size based on prefs -- intended for use on root element