diff --git a/app/scripts/directives/setting.js b/app/scripts/directives/setting.js index da13dfa..1d12b18 100644 --- a/app/scripts/directives/setting.js +++ b/app/scripts/directives/setting.js @@ -122,7 +122,7 @@ } }; - if (!angular.isUndefined(ngModel)) { + if (ngModel) { scope.$watch(function () { return ngModel.$viewValue; }, function (value) {