From e04d054a1b414e843fa6d6f5ee1ae75c0df533b1 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 13 Oct 2015 22:14:41 +0100 Subject: Reuse matchesElement from HTML paths --- lib/html-paths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/html-paths.js') diff --git a/lib/html-paths.js b/lib/html-paths.js index b881131..04bc655 100644 --- a/lib/html-paths.js +++ b/lib/html-paths.js @@ -39,7 +39,7 @@ function Element(tagName, attributes, options) { this.attributes = attributes || {}; this.fresh = options.fresh; } - + Element.prototype.matchesElement = function(element) { return this.tagNames[element.tagName] && _.isEqual(this.attributes || {}, element.attributes || {}); }; -- cgit v1.2.3