mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 01:56:21 +00:00
fix: prevent weird characters in date fields
This commit is contained in:
parent
00067d012a
commit
55196c2766
2
dist/helpers/handlebars-helpers.js
vendored
2
dist/helpers/handlebars-helpers.js
vendored
@ -33,7 +33,7 @@ Template helper definitions for Handlebars.
|
||||
helpers.type = 'handlebars';
|
||||
wrappedHelpers = _.mapObject(helpers, function(hVal, hKey) {
|
||||
if (_.isFunction(hVal)) {
|
||||
_.wrap(hVal, function(func) {
|
||||
return _.wrap(hVal, function(func) {
|
||||
var args;
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
args.shift();
|
||||
|
@ -25,7 +25,7 @@ module.exports = ( theme, opts ) ->
|
||||
|
||||
wrappedHelpers = _.mapObject helpers, ( hVal, hKey ) ->
|
||||
if _.isFunction hVal
|
||||
_.wrap hVal, (func) ->
|
||||
return _.wrap hVal, (func) ->
|
||||
args = Array.prototype.slice.call arguments
|
||||
args.shift() # lose the 1st element (func)
|
||||
args.pop() # lose the last element (the Handlebars options hash)
|
||||
|
Loading…
Reference in New Issue
Block a user