diff --git a/packages/core/ui/image-cache/index.ios.ts b/packages/core/ui/image-cache/index.ios.ts index 30421f0aa..1c38e3ece 100644 --- a/packages/core/ui/image-cache/index.ios.ts +++ b/packages/core/ui/image-cache/index.ios.ts @@ -13,19 +13,19 @@ function ensureHttpRequest() { } @NativeClass -class MemmoryWarningHandler extends NSObject { - static new(): MemmoryWarningHandler { - return super.new(); +class MemoryWarningHandler extends NSObject { + static new(): MemoryWarningHandler { + return super.new(); } private _cache: NSCache; - public initWithCache(cache: NSCache): MemmoryWarningHandler { + public initWithCache(cache: NSCache): MemoryWarningHandler { this._cache = cache; NSNotificationCenter.defaultCenter.addObserverSelectorNameObject(this, 'clearCache', 'UIApplicationDidReceiveMemoryWarningNotification', null); if (Trace.isEnabled()) { - Trace.write('[MemmoryWarningHandler] Added low memory observer.', Trace.categories.Debug); + Trace.write('[MemoryWarningHandler] Added low memory observer.', Trace.categories.Debug); } return this; @@ -34,14 +34,14 @@ class MemmoryWarningHandler extends NSObject { public dealloc(): void { NSNotificationCenter.defaultCenter.removeObserverNameObject(this, 'UIApplicationDidReceiveMemoryWarningNotification', null); if (Trace.isEnabled()) { - Trace.write('[MemmoryWarningHandler] Removed low memory observer.', Trace.categories.Debug); + Trace.write('[MemoryWarningHandler] Removed low memory observer.', Trace.categories.Debug); } super.dealloc(); } public clearCache(): void { if (Trace.isEnabled()) { - Trace.write('[MemmoryWarningHandler] Clearing Image Cache.', Trace.categories.Debug); + Trace.write('[MemoryWarningHandler] Clearing Image Cache.', Trace.categories.Debug); } this._cache.removeAllObjects(); utils.GC(); @@ -56,14 +56,14 @@ export class Cache extends common.Cache { private _cache: NSCache; //@ts-ignore - private _memoryWarningHandler: MemmoryWarningHandler; + private _memoryWarningHandler: MemoryWarningHandler; constructor() { super(); this._cache = new NSCache(); - this._memoryWarningHandler = MemmoryWarningHandler.new().initWithCache(this._cache); + this._memoryWarningHandler = MemoryWarningHandler.new().initWithCache(this._cache); } public _downloadCore(request: common.DownloadRequest) {