Compile a missing previous API change

This commit is contained in:
Andrew Stewart 2014-01-03 17:14:35 -08:00
parent aa16f56462
commit 879fbffb66
1 changed files with 4 additions and 4 deletions

8
dist/api.js vendored
View File

@ -67,13 +67,13 @@
}); });
}); });
this.server.all("/robots/:robotname/commands/:commandname", function(req, res) { this.server.all("/robots/:robotname/commands/:commandname", function(req, res) {
var key, params, value, _ref; var params, v, _, _ref;
params = []; params = [];
if (typeof req.body === 'object') { if (typeof req.body === 'object') {
_ref = req.body; _ref = req.body;
for (key in _ref) { for (_ in _ref) {
value = _ref[key]; v = _ref[_];
params.push(value); params.push(v);
} }
} }
return master.findRobot(req.params.robotname, function(err, robot) { return master.findRobot(req.params.robotname, function(err, robot) {