Mercurial > pub > ImplabJs
changeset 12:23be39fd3851
fixed typo in template-compile the built-in function 'print'
| author | cin |
|---|---|
| date | Thu, 24 Aug 2017 04:30:11 +0300 |
| parents | 67a5de7581ad |
| children | 5fd2a35d65c0 |
| files | src/implab/text/template-compile.js |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/implab/text/template-compile.js Mon Aug 21 18:06:30 2017 +0300 +++ b/src/implab/text/template-compile.js Thu Aug 24 04:30:11 2017 +0300 @@ -2,7 +2,7 @@ [ "dojo/request", "./format" ], function(request, format) { var compile = function(str) { - var code = "var p=[],print=function(){p.push(foramt.apply(null,arguments));};" + + var code = "var p=[],print=function(){p.push(format.apply(null,arguments));};" + // Introduce the data as local variables using with(){} "with(obj){p.push('" + // Convert the template into pure JavaScript
