Merge pull request #331 from iyogeshjoshi/master

Adds alternate keyword for 'adaptor' as 'adapter'
This commit is contained in:
Ron Evans 2016-02-25 08:32:33 -08:00
commit 3787ebda6a
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ Robot.prototype.connection = function(name, conn) {
str += "Renaming '" + original + "' to '" + conn.name + "'"; str += "Renaming '" + original + "' to '" + conn.name + "'";
this.log(str); this.log(str);
} }
if ("adapter" in conn) {
conn.adaptor = conn.adapter;
}
this.connections[conn.name] = initializer("adaptor", conn); this.connections[conn.name] = initializer("adaptor", conn);
return this; return this;