mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 11:17:04 +08:00
Merge pull request #131 from NativeScript/image-cache-fix
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) {
|
||||
var request = <DownloadRequest>this._pendingDownloads[key];
|
||||
|
||||
this.set(request.key, image);
|
||||
if (request.key && image) {
|
||||
this.set(request.key, image);
|
||||
}
|
||||
|
||||
this._currentDownloads--;
|
||||
|
||||
|
Reference in New Issue
Block a user