examples/map/js/backbone.marionette.js
function(target){
    target = target || {};
    var templateHelpers = Marionette.getOption(this, "templateHelpers");
    if (_.isFunction(templateHelpers)){
      templateHelpers = templateHelpers.call(this);
    }
    return _.extend(target, templateHelpers);
  }
function(target){
    target = target || {};
    var templateHelpers = Marionette.getOption(this, "templateHelpers");
    if (_.isFunction(templateHelpers)){
      templateHelpers = templateHelpers.call(this);
    }
    return _.extend(target, templateHelpers);
  }
function ( target ) { target = target || { } ; var templateHelpers = Marionette . getOption ( this , "templateHelpers" ) ; if ( _ . isFunction ( templateHelpers ) ) { templateHelpers = templateHelpers . call ( this ) ; } return _ . extend ( target , templateHelpers ) ; }
Mix in template helper methods. Looks for a `templateHelpers` attribute, which can either be an object literal, or a function that returns an object literal. All methods and attributes from this object are copies to the object passed in.
Mix in template helper methods . Looks for a templateHelpers attribute which can either be an object literal or a function that returns an object literal . All methods and attributes from this object are copies to the object passed in .