From e27f944ed1a644d7bcb86af7377d20b250594675 Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Sun, 10 Nov 2013 21:33:16 +0100 Subject: [PATCH] refactors context binding from _this to self --- app/assets/javascripts/discourse/helpers/i18n_helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/helpers/i18n_helpers.js b/app/assets/javascripts/discourse/helpers/i18n_helpers.js index 56d57ea2a4c..40622566e9d 100644 --- a/app/assets/javascripts/discourse/helpers/i18n_helpers.js +++ b/app/assets/javascripts/discourse/helpers/i18n_helpers.js @@ -26,10 +26,10 @@ I18n.toHumanSize = function(number, options) { Ember.Handlebars.registerHelper('i18n', function(property, options) { // Resolve any properties var params, - _this = this; + self = this; params = options.hash; _.each(params, function(value, key) { - params[key] = Em.Handlebars.get(_this, value, options); + params[key] = Em.Handlebars.get(self, value, options); }); return I18n.t(property, params); });