Added support for this keyword in paths.

This commit is contained in:
Alan Johnson
2010-08-04 21:54:57 -04:00
parent 4569684998
commit 54838cd90c
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -107,6 +107,8 @@ Handlebars.Compiler.prototype = {
break;
case ".":
// do nothing - using .'s is pretty dumb, but it's also basically free for us to support
case "this":
// if we do nothing you'll end up sticking in the same context
break;
default:
readDepth = true;