Job detail page refactor

Fixed empty object detection
This commit is contained in:
Chris Houseknecht 2014-06-14 04:19:02 -04:00
parent d300eab790
commit 37cd9d9aeb

View File

@ -453,7 +453,10 @@ function JobDetailController ($scope, $compile, $routeParams, $log, ClearScope,
};
scope.objectIsEmpty = function(obj) {
return (Object.keys(obj).length > 0) ? false : true;
if (angular.isObject(obj)) {
return (Object.keys(obj).length > 0) ? false : true;
}
return true;
};
scope.HostDetailOnTotalScroll = _.debounce(function() {