不要怂,就是干,撸起袖子干!

Commit 6f662d2b by René Oelke

Added support for short validate attribute syntax.

1 parent 1b5385ac
Showing with 1 additions and 1 deletions
......@@ -148,7 +148,7 @@ module.exports = (function() {
// is it a validator module function?
else {
// extra args
fn_args = details.hasOwnProperty("args") ? details.args : []
fn_args = details.hasOwnProperty("args") ? details.args : details
if (!Utils._.isArray(fn_args))
fn_args = [fn_args]
// error msg
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!