Skip to content

Commit 73fc9c1

Browse files
author
liangkuaisheng
committed
add expression dynamic return messages using functions Test Api Build
1 parent bcf3881 commit 73fc9c1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ You can also add a `validation-group` directive to group many elements into a gr
149149
<label>Huei (Custom setup the new validator - Function)</label>
150150
<input type="text" name="huei" ng-model="form.huei" validator="huei"/>
151151

152-
<label>Huei (Custom setup the new validator - Function)</label>
152+
<label>Kuaisheng (Custom setup the new validator - Function)</label>
153153
<input type="text" name="kuaisheng" ng-model="form.kuaisheng" validator="kuaisheng"/>
154154
```
155155

dist/angular-validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ angular.module('validation.directive', ['validation.provider']);
514514
* }
515515
*/
516516
function getResultObj(data) {
517-
var res = null;
517+
var res = {};
518518
if (data && data.length > 0) {
519519
res = data[0];
520520
if (!angular.isObject(res)) {

dist/angular-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/validator.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
* }
137137
*/
138138
function getResultObj(data) {
139-
var res = null;
139+
var res = {};
140140
if (data && data.length > 0) {
141141
res = data[0];
142142
if (!angular.isObject(res)) {

0 commit comments

Comments
 (0)