diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-10-13 22:14:41 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-10-13 22:14:41 +0100 |
| commit | e04d054a1b414e843fa6d6f5ee1ae75c0df533b1 (patch) | |
| tree | 4e6acf783e9ec47bbd47da9a7cc87e8093177209 /lib/html-paths.js | |
| parent | aac776b1711d1e286812035a28108c622e73994a (diff) | |
Reuse matchesElement from HTML paths
Diffstat (limited to 'lib/html-paths.js')
| -rw-r--r-- | lib/html-paths.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 || {}); }; |
