Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added string type check.

  • Loading branch information...
commit cd650b1c98ca6b69093b3bb27b1c372c76963d5c 1 parent 0446b8b
@dlongley dlongley authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  js/jsonld.js
View
3  js/jsonld.js
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.