Ensure _.template coerces the text argument to a string.

This commit is contained in:
John-David Dalton
2013-10-03 23:30:49 -07:00
parent 49e22742de
commit e114c18031
8 changed files with 18 additions and 11 deletions

View File

@@ -4337,7 +4337,7 @@
var _ = lodash,
settings = _.templateSettings;
text || (text = '');
text = String(text || '');
options = defaults({}, options, settings);
var index = 0,