MCPcopy Create free account
hub / github.com/betsol/angular-input-modified / updateCssClasses

Function updateCssClasses

src/directive/ngModel.js:131–134  ·  view source on GitHub ↗

* Decorates element with proper CSS classes.

()

Source from the content-addressed store, hash-verified

129 * Decorates element with proper CSS classes.
130 */
131 function updateCssClasses () {
132 $animate.addClass($element, (modelCtrl.modified ? config.modifiedClassName : config.notModifiedClassName));
133 $animate.removeClass($element, (modelCtrl.modified ? config.notModifiedClassName : config.modifiedClassName));
134 }
135
136 /**
137 * Overloading original set-pristine method.

Callers 3

onInputValueChangedFunction · 0.70
initializeMasterValueFunction · 0.70
setPristineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected