Skip to content

Commit

Permalink
Fixed a bug when context is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
utvara committed Feb 11, 2012
1 parent 58c91c8 commit 4adfb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mustache.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4adfb48

Please sign in to comment.