From 46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe Mon Sep 17 00:00:00 2001 From: Mathieu Tricoire Date: Wed, 12 Feb 2014 10:53:52 +0100 Subject: docs(input): document NgModelController.$isEmpty parameters / return value Closes #6224 --- src/ng/directive/input.js | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3