Skip to content
Browse files

Deal with arrays for URIs

  • Loading branch information...
1 parent 0520619 commit 676252402c5187fa6ebe0de375c7766a081110e2 @bergie bergie committed Apr 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Entity.js
View
6 src/Entity.js
@@ -235,6 +235,12 @@ VIE.prototype.Entity = function(attrs, opts) {
},
toReference: function(uri){
+ if (_.isArray(uri)) {
+ var self = this;
+ return _.map(uri, function(part) {
+ return self.toReference(part);
+ });
+ }
var ns = this.vie.namespaces;
var ret = uri;
if (uri.substring(0, 2) === "_:") {

0 comments on commit 6762524

Please sign in to comment.
Something went wrong with that request. Please try again.