fix tests by adding listen function, and fix lint/checkstyle errors

This commit is contained in:
Deep Tailor
2017-10-10 13:32:42 -07:00
parent 7deb3cd025
commit a4a1cb5e05
2 changed files with 12 additions and 4 deletions

View File

@@ -24,8 +24,8 @@
* Module defining ObjectInspectorController. Created by shale on 08/21/2015.
*/
define(
[],
function () {
['angular'],
function (angular) {
/**
* The ObjectInspectorController gets and formats the data for
@@ -112,7 +112,7 @@ define(
});
this.InspectorMutation.listen(function () {
if(!angular.equals($scope.metadata, $scope.ngModel.selectedObject.useCapability('metadata'))){
if (!angular.equals($scope.metadata, $scope.ngModel.selectedObject.useCapability('metadata'))) {
getMetadata();
}
});