Skip to content

Commit 2ad7a09

Browse files
lukostPatrickJS
lukost
authored andcommitted
Fix #71: autoApply is undefined in onCloseHandler and onEventHandler (#73)
Used 'true' as that is the default value for autoApply in message handler.
1 parent d92fe86 commit 2ad7a09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-websocket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
});
193193
} else {
194194
self.notifyCloseCallbacks(event);
195-
self.safeDigest(autoApply);
195+
self.safeDigest(true);
196196
}
197197
if ((this.reconnectIfNotNormalClose && event.code !== this._normalCloseCode) || this._reconnectableStatusCodes.indexOf(event.code) > -1) {
198198
this.reconnect();
@@ -207,7 +207,7 @@
207207
});
208208
} else {
209209
self.notifyErrorCallbacks(event);
210-
self.safeDigest(autoApply);
210+
self.safeDigest(true);
211211
}
212212
};
213213

0 commit comments

Comments
 (0)