From 94539ceac534bc8001cd2d9e2bf18027b635a7a8 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Mon, 30 Jul 2018 13:22:20 +0200 Subject: [PATCH] Do not bind to Zotero.Intl before it has been imported --- chrome/content/zotero/xpcom/zotero.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 4e10d5784d..56bd8f217c 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -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