Skip to content

Commit

Permalink
Ensure binding attributes that end with a '}' character don't cause s…
Browse files Browse the repository at this point in the history
…yntax errors
  • Loading branch information
SteveSanderson committed Sep 21, 2012
1 parent cb594d0 commit f48c708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templating/templateRewriting.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ko.templateRewriting = (function () {
// anonymous function, even though Opera's built-in debugger can evaluate it anyway. No other browser requires this
// extra indirection.
var applyBindingsToNextSiblingScript =
"ko.__tr_ambtns(function(){return(function(){return{" + rewrittenDataBindAttributeValue + "} })()})";
"ko.__tr_ambtns(function(){return(function(){return{ " + rewrittenDataBindAttributeValue + " } })()})";
return templateEngine['createJavaScriptEvaluatorBlock'](applyBindingsToNextSiblingScript) + tagToRetain;
}

Expand Down

0 comments on commit f48c708

Please sign in to comment.