Skip to content

Commit ca23da5

Browse files
author
bearyan
committed
优化 去掉冗余的代码
1 parent d37099b commit ca23da5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ objectAssign($, {
274274
* @returns {String}
275275
*/
276276
render: function (tpl, data) {
277-
const code = 'var p=[],print=function(){p.push.apply(p,arguments);};with(this){p.push(\'' +
277+
const code = 'var p=[];with(this){p.push(\'' +
278278
tpl
279279
.replace(/[\r\t\n]/g, ' ')
280280
.split('<%').join('\t')

0 commit comments

Comments
 (0)