Change a comparison with 'undefined' to use angular.isUndefined()

This fixes a violation of the angular es lint rule 'ng_definedundefined'

Change-Id: I5e8451d61d137afa73030e44ce575ec4f742b47f
Partially-Implements: blueprint jscs-cleanup
This commit is contained in:
cbeasley 2015-07-07 13:17:40 -07:00
parent a385be24f5
commit a32b959183

View File

@ -136,7 +136,7 @@
// Convenience function to return a sensible value instead of undefined
function defaultIfUndefined(value, defaultValue) {
return (value === undefined) ? defaultValue : value;
return (angular.isUndefined(value)) ? defaultValue : value;
}
/*