aboutsummaryrefslogtreecommitdiff
path: root/lib/xml/nodes.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xml/nodes.js')
-rw-r--r--lib/xml/nodes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xml/nodes.js b/lib/xml/nodes.js
index 9305918..76f5fd7 100644
--- a/lib/xml/nodes.js
+++ b/lib/xml/nodes.js
@@ -32,7 +32,7 @@ function Element(name, attributes, children) {
Element.prototype.first = function(name) {
return _.find(this.children, function(child) {
- return child.name == name;
+ return child.name === name;
});
};
@@ -42,7 +42,7 @@ Element.prototype.firstOrEmpty = function(name) {
Element.prototype.getElementsByTagName = function(name) {
var elements = _.filter(this.children, function(child) {
- return child.name == name;
+ return child.name === name;
});
return toElementList(elements);
};