From 1c7955c260c750ff79f00ed8857de5ea5100b53e Mon Sep 17 00:00:00 2001 From: Hogan Long Date: Tue, 6 Apr 2010 13:50:22 -0700 Subject: [PATCH] Fix reserved word parser error from Chrome 4.1 --- jquery.tmpl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jquery.tmpl.js b/jquery.tmpl.js index ce609e5..91339c3 100644 --- a/jquery.tmpl.js +++ b/jquery.tmpl.js @@ -71,19 +71,19 @@ */ tmplcmd: { - each: { + "each": { _default: [ null, "$i" ], prefix: "jQuery.each($1,function($2){with(this){", suffix: "}});" }, - if: { + "if": { prefix: "if($1){", suffix: "}" }, - else: { + "else": { prefix: "}else{" }, - html: { + "html": { prefix: "_.push(typeof $1==='function'?$1.call(this):$1);" }, "=": {