kopia lustrzana https://github.com/FacilMap/facilmap
Properly handling loaded event
rodzic
5878d29c83
commit
163a8e3e52
|
@ -90,9 +90,9 @@
|
|||
if(newValue == null || $scope.loaded)
|
||||
return;
|
||||
|
||||
$scope.loaded = true;
|
||||
setTimeout(function() { // Avoid error with onMove being executed while inside $apply()
|
||||
FacilPad.displayView(newValue.defaultView);
|
||||
$scope.loaded = true;
|
||||
}, 0);
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue