Files
NativeScript/ui/image-cache/image-cache.ios.ts
2015-03-03 10:34:40 +02:00

15 lines
479 B
TypeScript

import common = require("ui/image-cache/image-cache-common");
import imageSource = require("image-source");
module.exports.knownEvents = common.knownEvents;
export class Cache extends common.Cache {
public _downloadCore(request: common.DownloadRequest) {
// TODO: WeakRef?
var that = this;
imageSource.fromUrl(request.url).
then(function (value) {
that._onDownloadCompleted(request.key, value);
});
}
}