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:
}
},
cast_lookup: {
dateType: function (obj) {
if (Object.prototype.toString.call(obj) === '[object Date]') {
return obj;
}
return new Date(obj);
dateType: function (str) {
return new Date(str);
}
},
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