mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 22:00:17 +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) {
|
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