From ac75376d51e3414bae8c7d68f2d24eed7984a005 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 19 Sep 2008 19:08:45 +0000 Subject: [PATCH] use fewer xmlns attributes when serializing integration XML --- chrome/content/zotero/xpcom/integration.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index d2b6189d8..c657782e8 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -31,7 +31,7 @@ Zotero.Integration = new function() { this.sessions = {}; var ns = "http://www.zotero.org/namespaces/SOAP"; - this.ns = ns; + this.ns = new Namespace(ns); this.init = init; this.handleHeader = handleHeader; @@ -394,17 +394,17 @@ Zotero.Integration.DataListener.prototype._requestFinished = function(response) } Zotero.Integration.Request = function(xml) { - default xml namespace = Zotero.Integration.ns; with({}); - var env = Zotero.Integration.env; this.header = xml.env::Header; this.body = xml.env::Body; - this.responseXML = + this.responseXML = + default xml namespace = Zotero.Integration.ns; with({}); this.responseHeader = this.responseXML.env::Header; this.responseBody = this.responseXML.env::Body; @@ -434,7 +434,7 @@ Zotero.Integration.Request = function(xml) { } catch(e) { } - this.responseXML = + this.responseXML =