Skip to content

Commit

Permalink
only initialize opts for type if meta has some value
Browse files Browse the repository at this point in the history
  • Loading branch information
marianoguerra committed Jul 26, 2012
1 parent ff82470 commit 655c87d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/squide.types.js
Expand Up @@ -596,9 +596,11 @@
callValue = value.value;
}

// create a squim object with the metadata so we can convert the
// attributes to javascript objects
opts = (new Types.Obj(value.meta)).toJs();
if (value.meta) {
// create a squim object with the metadata so we can convert the
// attributes to javascript objects
opts = (new Types.Obj(value.meta)).toJs();
}
} else {
return obj.fromValue(Types.squimify(value));
}
Expand Down

0 comments on commit 655c87d

Please sign in to comment.