Remove unused titled-link-to helper

This commit is contained in:
Robin Ward 2014-09-11 13:13:57 -04:00
parent 8da4deba42
commit d010eee5d8

View File

@ -1,23 +1,5 @@
var safe = Handlebars.SafeString; var safe = Handlebars.SafeString;
/**
Produces a link to a route with support for i18n on the title
@method titled-link-to
@for Handlebars
**/
Handlebars.registerHelper('titled-link-to', function(name, object) {
var options = [].slice.call(arguments, -1)[0];
if (options.hash.titleKey) {
options.hash.title = I18n.t(options.hash.titleKey);
}
if (arguments.length === 3) {
return Ember.Handlebars.helpers['link-to'].call(this, name, object, options);
} else {
return Ember.Handlebars.helpers['link-to'].call(this, name, options);
}
});
/** /**
Bound avatar helper. Bound avatar helper.