loading indicator got broken after splitting up the code

pull/108/head
Candid Dauth 2017-02-25 15:20:39 +01:00
rodzic 3f95e76cdd
commit 0aeb364880
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -28,7 +28,9 @@ class Socket {
this.on(i, this._handlers[i].bind(this));
}
setTimeout(() => {
this._simulateEvent("loadStart");
}, 0);
let firstConnectHandler = () => {
this.removeListener("connect", firstConnectHandler);
this._simulateEvent("loadEnd");

Wyświetl plik

@ -311,11 +311,11 @@ fm.app.factory("fmMap", function(fmUtils, fmSocket, fmMapMessages, fmMapMarkers,
map.socket.loading--;
};
map.socket.$on("loadStart", function() {
map.socket.on("loadStart", function() {
map.loadStart();
});
map.socket.$on("loadEnd", function() {
map.socket.on("loadEnd", function() {
map.loadEnd();
});