If init fails once, don't completely break when the user retries

The loading progress would not be reset upon failure, causing issues
when you tried to start loading again.

Bug: T96437
Change-Id: I7ec4be82304c101fa1bd634f60bc6b0047e2d53d
This commit is contained in:
Alex Monk 2015-09-14 21:13:45 +01:00
parent aa7fcf27e6
commit 23691dc861

View file

@ -181,6 +181,9 @@
target.on( 'deactivate', function () {
active = false;
} );
target.on( 'loadError', function () {
resetLoadingProgress();
} );
return target.activate( dataPromise );
} )
.then( function () {