mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed: image-cache exception #127
This commit is contained in:
@@ -125,7 +125,9 @@ export class Cache extends observable.Observable implements definition.Cache {
|
|||||||
public _onDownloadCompleted(key: string, image: any) {
|
public _onDownloadCompleted(key: string, image: any) {
|
||||||
var request = <DownloadRequest>this._pendingDownloads[key];
|
var request = <DownloadRequest>this._pendingDownloads[key];
|
||||||
|
|
||||||
this.set(request.key, image);
|
if (request.key && image) {
|
||||||
|
this.set(request.key, image);
|
||||||
|
}
|
||||||
|
|
||||||
this._currentDownloads--;
|
this._currentDownloads--;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user