'use strict'; define( [ 'handlebars', 'underscore' ], function (Handlebars, _) { Handlebars.registerHelper('allowedLabeler', function () { var ret = ''; var cutoff = this.cutoff; _.each(this.allowed, function (allowed) { if (allowed.id === cutoff.id) { ret += '' + allowed.name + ' '; } else { ret += '' + allowed.name + ' '; } }); return new Handlebars.SafeString(ret); }); });