Merge pull request #1638 from velesin/i18n_helper_self_refactoring

refactors context binding from _this to self
This commit is contained in:
Robin Ward 2013-11-11 07:36:27 -08:00
commit 428fcb9841
1 changed files with 2 additions and 2 deletions

View File

@ -26,10 +26,10 @@ I18n.toHumanSize = function(number, options) {
Ember.Handlebars.registerHelper('i18n', function(property, options) { Ember.Handlebars.registerHelper('i18n', function(property, options) {
// Resolve any properties // Resolve any properties
var params, var params,
_this = this; self = this;
params = options.hash; params = options.hash;
_.each(params, function(value, key) { _.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); return I18n.t(property, params);
}); });