Fixed several tslint errors.

This commit is contained in:
Rossen Hristov
2015-04-20 14:04:34 +03:00
parent 08ce45959c
commit 3e9033c900
3 changed files with 6 additions and 3 deletions

View File

@@ -12,8 +12,13 @@ class LruBitmapCache extends android.util.LruCache<string, android.graphics.Bitm
// The cache size will be measured in kilobytes rather than
// number of items.
var result = Math.round(bitmap.getByteCount() / 1024);
//console.log("sizeOf key: " + result);
return result;
}
//protected entryRemoved(evicted: boolean, key: string, oldValue: android.graphics.Bitmap, newValue: android.graphics.Bitmap): void {
// console.log("entryRemoved("+evicted+", "+key+", "+oldValue+", "+newValue+")");
//}
};
export class Cache extends common.Cache {
@@ -25,6 +30,7 @@ export class Cache extends common.Cache {
var maxMemory = java.lang.Runtime.getRuntime().maxMemory() / 1024;
var cacheSize = maxMemory / 8;
//console.log("cacheSize: " + cacheSize);
this._cache = new LruBitmapCache(cacheSize);
var that = new WeakRef(this);

View File

@@ -50,7 +50,6 @@ class MemmoryWarningHandler extends NSObject {
};
}
export class Cache extends common.Cache {
private _cache: NSCache;
//private _delegate: NSCacheDelegate;

View File

@@ -37,8 +37,6 @@ function onImageSourcePropertyChanged(data: dependencyObservable.PropertyChangeD
(<proxy.PropertyMetadata>imageCommon.Image.imageSourceProperty.metadata).onSetNativeValue = onImageSourcePropertyChanged;
(<proxy.PropertyMetadata>imageCommon.Image.stretchProperty.metadata).onSetNativeValue = onStretchPropertyChanged;
export class Image extends imageCommon.Image {
private _ios: UIImageView;