From 4b13398d9f4fc303d22fc24aac519113941b032c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 28 Jun 2016 21:51:50 +0100 Subject: Add stylistic eslint rules --- lib/xml/nodes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/xml/nodes.js') 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); }; -- cgit v1.2.3