From d096d70c523d58c68eae08c52f285d547193b46e Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 21 Jun 2016 00:22:18 +0800 Subject: [PATCH] fix bug --- app/scripts/directives/setting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {