Skip to content

Commit a623fdf

Browse files
committed
Dist.
1 parent aed9e23 commit a623fdf

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

dist/Jsonix-all.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ Jsonix.Class = function() {
7979
};
8080

8181
Jsonix.XML = {
82-
BUILTIN_NAMESPACE_PREFIXES : {
83-
'xmlns' : 'http://www.w3.org/2000/xmlns/',
84-
'xml' : 'http://www.w3.org/XML/1998/namespace'
85-
},
8682
XMLNS_NS : 'http://www.w3.org/2000/xmlns/',
8783
XMLNS_P : 'xmlns'
8884
};
@@ -1593,11 +1589,6 @@ Jsonix.XML.Output = Jsonix.Class({
15931589
},
15941590
declareNamespace : function (ns, p)
15951591
{
1596-
if (Jsonix.XML.BUILTIN_NAMESPACE_PREFIXES[p])
1597-
{
1598-
// If this is a builtin namespace prefix like 'xml' or 'xmlns', do not declare it
1599-
return;
1600-
}
16011592
var index = this.pns.length - 1;
16021593
var pnsItem = this.pns[index];
16031594
var reference;
@@ -1616,7 +1607,7 @@ Jsonix.XML.Output = Jsonix.Class({
16161607
{
16171608
if (p === '')
16181609
{
1619-
this.writeAttribute({ns : Jsonix.XML.XMLNS_NS, lp : Jsonix.XML.XMLNS_P}, ns);
1610+
this.writeAttribute({lp : Jsonix.XML.XMLNS_P}, ns);
16201611
}
16211612
else
16221613
{

dist/Jsonix-min.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(i===undefined){delete o.prototype.initialize
2929
}n.prototype=p;
3030
return n
3131
};
32-
Jsonix.XML={BUILTIN_NAMESPACE_PREFIXES:{xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace"},XMLNS_NS:"http://www.w3.org/2000/xmlns/",XMLNS_P:"xmlns"};
32+
Jsonix.XML={XMLNS_NS:"http://www.w3.org/2000/xmlns/",XMLNS_P:"xmlns"};
3333
Jsonix.DOM={createDocument:function(){if(typeof _jsonix_xmldom!=="undefined"){return new (_jsonix_xmldom.DOMImplementation)().createDocument()
3434
}else{if(typeof document!=="undefined"&&Jsonix.Util.Type.exists(document.implementation)&&Jsonix.Util.Type.isFunction(document.implementation.createDocument)){return document.implementation.createDocument("","",null)
3535
}else{if(typeof ActiveXObject!=="undefined"){return new ActiveXObject("MSXML2.DOMDocument")
@@ -630,14 +630,13 @@ h=Jsonix.Util.Type.isNumber(h)?this.nsp[h]:h;
630630
var e,g;
631631
for(e in h){if(h.hasOwnProperty(e)){g=h[e];
632632
this.declareNamespace(e,g)
633-
}}},declareNamespace:function(j,i){if(Jsonix.XML.BUILTIN_NAMESPACE_PREFIXES[i]){return
634-
}var f=this.pns.length-1;
633+
}}},declareNamespace:function(j,i){var f=this.pns.length-1;
635634
var h=this.pns[f];
636635
var g;
637636
if(Jsonix.Util.Type.isNumber(h)){g=true;
638637
h=this.pns[h]
639638
}else{g=false
640-
}if(h[i]!==j){if(i===""){this.writeAttribute({ns:Jsonix.XML.XMLNS_NS,lp:Jsonix.XML.XMLNS_P},j)
639+
}if(h[i]!==j){if(i===""){this.writeAttribute({lp:Jsonix.XML.XMLNS_P},j)
641640
}else{this.writeAttribute({ns:Jsonix.XML.XMLNS_NS,lp:i,p:Jsonix.XML.XMLNS_P},j)
642641
}if(g){h=Jsonix.Util.Type.cloneObject(h,{});
643642
this.pns[f]=h

0 commit comments

Comments
 (0)