Fixes #503, Notes broken on Firefox 32

Unwrap the editor object if it's wrapped
This commit is contained in:
Dan Stillman 2014-06-19 17:47:56 -04:00
parent 954f8bd001
commit c32144ddfd

View File

@ -418,7 +418,13 @@
if (!SJOW.zoteroInit) {
SJOW.zoteroInit = function(editor) {
self._editor = editor;
// Necessary in Fx32+
if (editor.wrappedJSObject) {
self._editor = editor.wrappedJSObject;
}
else {
self._editor = editor;
}
if (self._value) {
self.value = self._value;
}