docs(input): document NgModelController.$isEmpty parameters / return value

Closes #6224
This commit is contained in:
Mathieu Tricoire
2014-02-12 10:53:52 +01:00
committed by Caitlin Potter
parent 72894f0dd2
commit 46cba2e05d

View File

@@ -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;