Commit c844e2f1 authored by Marco Mariani's avatar Marco Mariani

doc fix: dateType cannot receive a date

parent 04fa62f0
...@@ -209,11 +209,8 @@ you can group all of them in a schema object for reuse: ...@@ -209,11 +209,8 @@ you can group all of them in a schema object for reuse:
} }
}, },
cast_lookup: { cast_lookup: {
dateType: function (obj) { dateType: function (str) {
if (Object.prototype.toString.call(obj) === '[object Date]') { return new Date(str);
return obj;
}
return new Date(obj);
} }
}, },
match_lookup: { match_lookup: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment