kopia lustrzana https://github.com/FacilMap/facilmap
loading indicator got broken after splitting up the code
rodzic
3f95e76cdd
commit
0aeb364880
|
@ -28,7 +28,9 @@ class Socket {
|
|||
this.on(i, this._handlers[i].bind(this));
|
||||
}
|
||||
|
||||
this._simulateEvent("loadStart");
|
||||
setTimeout(() => {
|
||||
this._simulateEvent("loadStart");
|
||||
}, 0);
|
||||
let firstConnectHandler = () => {
|
||||
this.removeListener("connect", firstConnectHandler);
|
||||
this._simulateEvent("loadEnd");
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue