Permalink
Browse files

Fixed a bug when context is a string

  • Loading branch information...
utvara committed Feb 11, 2012
1 parent 58c91c8 commit 4adfb48205e00068051657695d8d4184c9a94da1
Showing with 1 addition and 1 deletion.
  1. +1 −1 mustache.js
View
@@ -149,7 +149,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
localStack.push(context);
}
- if (context && target in context) {
+ if (context && typeof context === "object" && target in context) {
value = context[target];
break;
}

0 comments on commit 4adfb48

Please sign in to comment.