add hack comments to utilities.js
This commit is contained in:
parent
663bc77b5f
commit
f71122e788
1 changed files with 2 additions and 0 deletions
|
@ -636,6 +636,7 @@ Zotero.Utilities = {
|
|||
var results = [];
|
||||
for(var i in elements) {
|
||||
var element = elements[i];
|
||||
// Firefox 5 hack
|
||||
if(element.__wrappedDOMObject) element = element.__wrappedDOMObject;
|
||||
|
||||
if(element.ownerDocument) {
|
||||
|
@ -659,6 +660,7 @@ Zotero.Utilities = {
|
|||
|
||||
var newEl;
|
||||
while(newEl = xpathObject.iterateNext()) {
|
||||
// Firefox 5 hack
|
||||
results.push(Zotero.isFx5 && !_dontWrap ? Zotero.Translate.SandboxManager.Fx5DOMWrapper(newEl) : newEl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue