Comparing version 0.6.4 to 0.6.5
@@ -161,9 +161,9 @@ var sax = require("sax"); | ||
findChildren(ns, name) { | ||
if(name )return this.children.filter(function(c) { return name == c.nameWithoutPrefix() && c.namespace() === ns;}); | ||
return this.children.filter(function(c) { return ns == c.name }); | ||
if(name )return this.children.filter(function(c) { return typeof(c) !== 'string' && name == c.nameWithoutPrefix() && c.namespace() === ns;}); | ||
return this.children.filter(function(c) { return typeof(c) !== 'string' && ns == c.name }); | ||
} | ||
firstChild(ns,name) { | ||
if(name)return this.children.find(function(c) { return name == c.nameWithoutPrefix() && c.namespace() === ns;}); | ||
return this.children.find(function(c) { return ns == c.name }); | ||
if(name)return this.children.find(function(c) { return typeof(c) !== 'string' && name == c.nameWithoutPrefix() && c.namespace() === ns;}); | ||
return this.children.find(function(c) { return typeof(c) !== 'string' && ns == c.name }); | ||
} | ||
@@ -170,0 +170,0 @@ |
{ | ||
"name": "xmlobject", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Convert javascript objects to and from xml strings.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11212