@@ -1804,9 +1804,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1804
1804
bindings = parent . data ( '$binding' ) || [ ] ;
1805
1805
bindings . push ( interpolateFn ) ;
1806
1806
safeAddClass ( parent . data ( '$binding' , bindings ) , 'ng-binding' ) ;
1807
- scope . $watch ( interpolateFn , function interpolateFnWatchAction ( value ) {
1807
+ scope . $watchGroup ( interpolateFn . expressions , interpolateFn . $$invoke ( function ( value ) {
1808
1808
node [ 0 ] . nodeValue = value ;
1809
- } ) ;
1809
+ } ) ) ;
1810
1810
} )
1811
1811
} ) ;
1812
1812
}
@@ -1867,7 +1867,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1867
1867
attr [ name ] = interpolateFn ( scope ) ;
1868
1868
( $$observers [ name ] || ( $$observers [ name ] = [ ] ) ) . $$inter = true ;
1869
1869
( attr . $$observers && attr . $$observers [ name ] . $$scope || scope ) .
1870
- $watch ( interpolateFn , function interpolateFnWatchAction ( newValue , oldValue ) {
1870
+ $watchGroup ( interpolateFn . expressions , interpolateFn . $$invoke ( function ( newValue , oldValue ) {
1871
1871
//special case for class attribute addition + removal
1872
1872
//so that class changes can tap into the animation
1873
1873
//hooks provided by the $animate service. Be sure to
@@ -1879,7 +1879,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1879
1879
} else {
1880
1880
attr . $set ( name , newValue ) ;
1881
1881
}
1882
- } ) ;
1882
+ } ) ) ;
1883
1883
}
1884
1884
} ;
1885
1885
}
0 commit comments