Skip to content

Commit

Permalink
Fix issue with variable decaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmichaud committed Dec 8, 2015
1 parent bd417b4 commit bb076d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/mirobot-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ define(function () {
_mirobotState = false;
// If an object exists with callback_id in our _callbacks object, resolve it
if (_callbacks.hasOwnProperty(message.id.toString())) {
var callback = _callbacks[message.id.toString()];
if (message.status === 'complete') {
var callback = _callbacks[message.id.toString()];
delete _callbacks[message.id.toString()];
// Process the next message as soon as possible
processMessage();
Expand Down

0 comments on commit bb076d4

Please sign in to comment.