Fix the constructor

This commit is contained in:
Raymond Feng 2013-07-25 22:39:16 -07:00
parent 1109f671da
commit 0e4162af2a
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ module.exports = function (Types) {
return this.value;
};
Types.JSON = function JSON() {
Types.JSON = function JSON(value) {
if (!(this instanceof JSON)) {
return new JSON(value);
}
@ -27,7 +27,7 @@ module.exports = function (Types) {
return this.value;
};
Types.Any = function Any() {
Types.Any = function Any(value) {
if (!(this instanceof Any)) {
return new Any(value);
}