[Pkg-mozext-commits] [greasemonkey] 03/13: Construct object with "new" keyword.
David Prévot
taffit at moszumanska.debian.org
Thu Jul 17 20:10:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 3bfe3c9ec2a87a74c34b8348eb216b2677e0fd78
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Mon Jul 7 18:41:22 2014 -0400
Construct object with "new" keyword.
---
modules/xmlhttprequester.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/xmlhttprequester.js b/modules/xmlhttprequester.js
index a56054a..57f1978 100644
--- a/modules/xmlhttprequester.js
+++ b/modules/xmlhttprequester.js
@@ -198,7 +198,7 @@ function(wrappedContentWin, req, event, details) {
if (req.responseXML) {
// Adopt the XML object into a content-window-scoped document.
- var xmlDoc = wrappedContentWin.Document();
+ var xmlDoc = new wrappedContentWin.Document();
xmlDoc.appendChild(xmlDoc.adoptNode(req.responseXML.documentElement));
responseState.responseXML = xmlDoc;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list