From 107932576e73d7bb90c004947fb0a3b707cb6fb1 Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Thu, 10 Oct 2013 18:33:24 +0200 Subject: [PATCH] removes redundant context binding --- app/assets/javascripts/preload_store.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/preload_store.js b/app/assets/javascripts/preload_store.js index 801ef5b4f2d..e597445c622 100644 --- a/app/assets/javascripts/preload_store.js +++ b/app/assets/javascripts/preload_store.js @@ -31,11 +31,9 @@ PreloadStore = { @returns {Ember.Deferred} a promise that will eventually be the object we want. **/ getAndRemove: function(key, finder) { - var preloadStore = this; - - if (preloadStore.data[key]) { - var promise = Ember.RSVP.resolve(preloadStore.data[key]); - delete preloadStore.data[key]; + if (this.data[key]) { + var promise = Ember.RSVP.resolve(this.data[key]); + delete this.data[key]; return promise; }