[Pkg-javascript-commits] [ltx] 322/469: fix jshint
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 3c6ce0877d0336eeb22b7b1b3fdc43ab6a3b1529
Author: ▟ ▖▟ ▖ <dodo.the.last at gmail.com>
Date: Wed Feb 19 22:39:53 2014 +0100
fix jshint
---
lib/dom-element.js | 1 -
lib/parse.js | 2 ++
test/dom-element-test.js | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/dom-element.js b/lib/dom-element.js
index a5a794d..9f22aad 100644
--- a/lib/dom-element.js
+++ b/lib/dom-element.js
@@ -46,7 +46,6 @@ Object.defineProperty(DOMElement.prototype, 'textContent', {
})
DOMElement.prototype.getElementsByTagName = function (name) {
- var res = this.getChildren(name)
return this.getChildren(name)
}
diff --git a/lib/parse.js b/lib/parse.js
index 1e2e19d..aa6ee21 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -52,6 +52,7 @@ exports.Parser = function(saxParser) {
}
})
this.parser.addListener('endElement', function(name) {
+ /* jshint -W035 */
if (!el) {
/* Err */
} else if (name === el.name) {
@@ -62,6 +63,7 @@ exports.Parser = function(saxParser) {
el = undefined
}
}
+ /* jshint +W035 */
})
this.parser.addListener('text', function(str) {
if (el) {
diff --git a/test/dom-element-test.js b/test/dom-element-test.js
index 83b2e3c..2dfeb00 100644
--- a/test/dom-element-test.js
+++ b/test/dom-element-test.js
@@ -1,3 +1,5 @@
+'use strict';
+
var vows = require('vows')
, assert = require('assert')
, ltx = require('./../lib/index')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list