File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change 14822
14822
// to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
14823
14823
// and escape the comment, thus injecting code that gets evaled.
14824
14824
var sourceURL = '//# sourceURL=' + (
14825
- options. sourceURL
14825
+ hasOwnProperty.call(options, ' sourceURL')
14826
14826
? (options.sourceURL + '').replace(/\s/g, ' ')
14827
14827
: ('lodash.templateSources[' + (++templateCounter) + ']')
14828
14828
) + '\n';
14856
14856
14857
14857
// If `variable` is not specified wrap a with-statement around the generated
14858
14858
// code to add the data object to the top of the scope chain.
14859
- var variable = options.variable;
14859
+ var variable = hasOwnProperty.call(options, 'variable') && options.variable;
14860
14860
if (!variable) {
14861
14861
source = 'with (obj) {\n' + source + '\n}\n';
14862
14862
}
You can’t perform that action at this time.
0 commit comments