From b5907ccd3643723cd9e1064be173a6d8c23ca727 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Wed, 17 Dec 2014 16:36:48 -0800 Subject: [PATCH] Correct iteration key issue --- lib/adaptor.js | 2 +- lib/driver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adaptor.js b/lib/adaptor.js index 023ef55..cf157ad 100644 --- a/lib/adaptor.js +++ b/lib/adaptor.js @@ -35,7 +35,7 @@ var Adaptor = module.exports = function Adaptor(opts) { this.details = {}; _.forEach(opts, function(opt, name) { - if (_.include(["robot", "name", "adaptor"], opt)) { + if (_.include(["robot", "name", "adaptor"], name)) { return; } diff --git a/lib/driver.js b/lib/driver.js index 8c74a82..8488642 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -36,7 +36,7 @@ var Driver = module.exports = function Driver(opts) { this.details = {}; _.forEach(opts, function(opt, name) { - if (_.include(["robot", "name", "connection", "driver"], opt)) { + if (_.include(["robot", "name", "connection", "driver"], name)) { return; }