mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Allow sourceURL option of _.template to be falsey.
This commit is contained in:
@@ -9208,8 +9208,11 @@
|
||||
|
||||
// Use a sourceURL for easier debugging.
|
||||
// See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl.
|
||||
var sourceURL = 'sourceURL' in options ? options.sourceURL : ('/lodash/template/source[' + (++templateCounter) + ']');
|
||||
sourceURL = sourceURL ? ('//# sourceURL=' + sourceURL + '\n') : '';
|
||||
var sourceURL = '//# sourceURL=' +
|
||||
('sourceURL' in options
|
||||
? options.sourceURL
|
||||
: ('/lodash/template/source[' + (++templateCounter) + ']')
|
||||
) + '\n';
|
||||
|
||||
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
||||
interpolateValue || (interpolateValue = esTemplateValue);
|
||||
|
||||
Reference in New Issue
Block a user