Tidy up jsHinst errors in parser nodes

This commit is contained in:
Dave C-J
2014-06-30 20:44:01 +01:00
parent 790ad8eb68
commit 52779ac518
2 changed files with 14 additions and 13 deletions

View File

@@ -15,6 +15,7 @@
**/
module.exports = function(RED) {
"use strict";
var cheerio = require('cheerio');
function CheerioNode(n) {
@@ -46,7 +47,7 @@ module.exports = function(RED) {
//if (node.ret === "val") { pay.push( $(this).val() ); }
}
});
if ((node.as === "single") && (pay.length != 0)) {
if ((node.as === "single") && (pay.length !== 0)) {
msg.payload = pay;
node.send(msg);
}