From 3c69817527da5527693a3e37d2cc0f490c682e57 Mon Sep 17 00:00:00 2001 From: highsource Date: Wed, 25 Mar 2015 00:43:23 +0100 Subject: [PATCH] Fixes #62. --- nodejs/scripts/jsonix.js | 3 +-- nodejs/scripts/tests/GH62/GH62.js | 2 +- scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js | 1 - .../src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/nodejs/scripts/jsonix.js b/nodejs/scripts/jsonix.js index bf8bd6fa..707f4575 100644 --- a/nodejs/scripts/jsonix.js +++ b/nodejs/scripts/jsonix.js @@ -81,7 +81,6 @@ Jsonix.Class = function() { Jsonix.XML = { XMLNS_NS : 'http://www.w3.org/2000/xmlns/', XMLNS_P : 'xmlns' - }; @@ -1608,7 +1607,7 @@ Jsonix.XML.Output = Jsonix.Class({ { if (p === '') { - this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns); + this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns); } else { diff --git a/nodejs/scripts/tests/GH62/GH62.js b/nodejs/scripts/tests/GH62/GH62.js index 4e3caed3..e3abb9d3 100644 --- a/nodejs/scripts/tests/GH62/GH62.js +++ b/nodejs/scripts/tests/GH62/GH62.js @@ -33,7 +33,7 @@ module.exports = { } }; var marshalled = marshaller.marshalString(data); - test.equal("orto", marshalled); + test.equal("orto", marshalled); test.done(); } }; diff --git a/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js b/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js index 160c415e..170d39ef 100644 --- a/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js +++ b/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML.js @@ -1,6 +1,5 @@ Jsonix.XML = { XMLNS_NS : 'http://www.w3.org/2000/xmlns/', XMLNS_P : 'xmlns' - }; diff --git a/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js b/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js index 9aad7431..02da834a 100644 --- a/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js +++ b/scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/XML/Output.js @@ -208,7 +208,7 @@ Jsonix.XML.Output = Jsonix.Class({ { if (p === '') { - this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns); + this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns); } else {