Closed GoogleCodeExporter closed 8 years ago
I am also experiencing the same issue. When I revert back to version 1.2 this
"Uncaught Template command" error goes away.
Original comment by paige.c...@gmail.com
on 20 Jun 2011 at 12:15
Same here. It breaks knockout or it's creating some other javascript error
which is breaking the knockout js.
Original comment by wvdomin...@gmail.com
on 20 Jun 2011 at 1:31
Original comment by jarrod.m.dixon
on 20 Jun 2011 at 5:07
It has something to do with when knockout.js creates it's script bock depending
on the version of jQuery templates you are using. Here is some code I found in
knockout.js:
this['createJavaScriptEvaluatorBlock'] = function (script) {
if (this.jQueryTmplVersion == 1)
return "{{= " + script + "}}";
// From v2, jquery-tmpl does some parameter parsing that fails on nontrivial expressions.
// Prevent it from messing with the code by wrapping it in a further function.
return "{{ko_code ((function() { return " + script + " })()) }}";
},
Original comment by wvdomin...@gmail.com
on 20 Jun 2011 at 6:06
I've broken out our jquery.tmpl code into its own embedded file; we'll only
download it if another version isn't present (using yepnope).
Original comment by jarrod.m.dixon
on 21 Jun 2011 at 8:24
This appears to have fixed the problem for me.
Original comment by wvdomin...@gmail.com
on 21 Jun 2011 at 2:09
Original issue reported on code.google.com by
milutino...@gmail.com
on 18 Jun 2011 at 5:44