Don't use instanceof Array check in ZU.xpath. It fails in Firefox because Array in the sandbox != Array outside of the sandbox. Instead, just check for a length property.
This commit is contained in:
parent
6bed648eb2
commit
73761723c0
1 changed files with 1 additions and 1 deletions
|
@ -963,7 +963,7 @@ Zotero.Utilities = {
|
|||
};
|
||||
}
|
||||
|
||||
if(!(elements instanceof Array)) elements = [elements];
|
||||
if(!("length" in elements)) elements = [elements];
|
||||
|
||||
var results = [];
|
||||
for(var i=0, n=elements.length; i<n; i++) {
|
||||
|
|
Loading…
Reference in a new issue