diff options
| author | Mathieu Tricoire | 2014-02-12 10:53:52 +0100 | 
|---|---|---|
| committer | Caitlin Potter | 2014-02-12 08:19:24 -0500 | 
| commit | 46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe (patch) | |
| tree | f72b8bea462a774a683bd6b64b849e7a15ac1561 /src/ng/directive/input.js | |
| parent | 72894f0dd28ca8f059b79bff667ed11b7ea304bb (diff) | |
| download | angular.js-46cba2e05dff2ca34a1d5c85e6d68abc9c06d9fe.tar.bz2 | |
docs(input): document NgModelController.$isEmpty parameters / return value
Closes #6224
Diffstat (limited to 'src/ng/directive/input.js')
| -rw-r--r-- | src/ng/directive/input.js | 3 | 
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; | 
