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

Commit 657a1895 by Sascha Depold

Merge pull request #299 from trademob/bugfix-validate-syntax

Added support for short validate attribute syntax.
2 parents e7c67a34 6f662d2b
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!