Skip to content

Commit f82f64b

Browse files
committed
Fixing up broken tests
1 parent 7719e26 commit f82f64b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scripts/controller.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export default class AngularColorPickerController {
170170
}
171171

172172
init() {
173+
this.internalNgModel = this.ngModel;
174+
173175
// ng model options
174176
this.ngModelOptions = this.$scope.control[0].$options.$$options;
175177

@@ -192,9 +194,11 @@ export default class AngularColorPickerController {
192194
}
193195

194196
initWatchers() {
197+
195198
// ngModel
196199

197200
this.$scope.$watch('AngularColorPickerController.ngModel', this.watchNgModel.bind(this));
201+
this.$scope.$watch('AngularColorPickerController.internalNgModel', this.watchNgModel.bind(this));
198202

199203
// options
200204

0 commit comments

Comments
 (0)