Skip to content

Commit 9b50748

Browse files
committed
change variable name of callback in onMessageArrived to avoid overwriting the error callback
1 parent a2f9c42 commit 9b50748

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,8 +2118,8 @@ function createClearBladeInstance (window, undefined) {
21182118
ClearBlade.getMessageTopic(message.destinationName, messageCallbacks)
21192119
]
21202120
);
2121-
for (callback of callbacks) {
2122-
callback(message.payloadString, message);
2121+
for (var theCallback of callbacks) {
2122+
theCallback(message.payloadString, message);
21232123
}
21242124
};
21252125
// the mqtt websocket library uses "onConnect," but our terminology uses

0 commit comments

Comments
 (0)