Permalink
Browse files

Added string type check.

  • Loading branch information...
1 parent 0446b8b commit cd650b1c98ca6b69093b3bb27b1c372c76963d5c @dlongley dlongley committed Aug 22, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/jsonld.js
View
@@ -150,7 +150,8 @@ var _getKeywords = function(ctx)
var keywords = {};
for(var key in ctx)
{
- if(ctx[key] in rval)
+ if(ctx[key].constructor === String &&
+ ctx[key] in rval)
{
keywords[ctx[key]] = key;
}

0 comments on commit cd650b1

Please sign in to comment.