aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathieu Tricoire2014-02-12 10:53:52 +0100
committerCaitlin Potter2014-02-12 08:19:24 -0500
commit46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe (patch)
treef72b8bea462a774a683bd6b64b849e7a15ac1561 /src
parent72894f0dd28ca8f059b79bff667ed11b7ea304bb (diff)
downloadangular.js-46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe.tar.bz2
docs(input): document NgModelController.$isEmpty parameters / return value
Closes #6224
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/input.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 27813a46..3c09c084 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -1022,6 +1022,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
* You can override this for input directives whose concept of being empty is different to the
* default. The `checkboxInputType` directive does this because in its case a value of `false`
* implies empty.
+ *
+ * @param {*} value Reference to check.
+ * @returns {boolean} True if `value` is empty.
*/
this.$isEmpty = function(value) {
return isUndefined(value) || value === '' || value === null || value !== value;