Permalink
Browse files

Do not add @value to keywords.

  • Loading branch information...
1 parent b41af7e commit 1b3481cf00a77f5241f4aca6f0337cd86c382613 @dlongley dlongley committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jsonld.js
View
@@ -1807,7 +1807,7 @@ function _expandValue(ctx, property, value, base) {
if(type === '@id' || prop === '@graph') {
rval = {'@id': _expandTerm(ctx, value, base)};
}
- else if(prop !== '@value' && prop !== '@language') {
+ else if(!_isKeyword(prop)) {
rval = {'@value': value};
// other type

0 comments on commit 1b3481c

Please sign in to comment.