Skip to content
Browse files

Fixed a bug when context is a string

  • Loading branch information...
1 parent 58c91c8 commit 4adfb48205e00068051657695d8d4184c9a94da1 @utvara utvara committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mustache.js
View
2 mustache.js
@@ -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.
Something went wrong with that request. Please try again.