File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1907,7 +1907,7 @@ function $ParseProvider() {
19071907 if ( isDone ( lastValue ) ) {
19081908 scope . $$postDigest ( unwatchIfDone ) ;
19091909 }
1910- return post ( lastValue , scope , locals ) ;
1910+ return post ( lastValue ) ;
19111911 }
19121912 }
19131913
Original file line number Diff line number Diff line change @@ -3246,6 +3246,20 @@ describe('parser', function() {
32463246 expect ( args ) . toEqual ( [ 1 ] ) ;
32473247 } ) ) ;
32483248
3249+ it ( 'should only be passed the intercepted value when wrapping one-time' , inject ( function ( $parse ) {
3250+ var args ;
3251+ function interceptor ( v ) {
3252+ args = sliceArgs ( arguments ) ;
3253+ return v ;
3254+ }
3255+
3256+ scope . $watch ( $parse ( '::a' , interceptor ) ) ;
3257+
3258+ scope . a = 1 ;
3259+ scope . $digest ( ) ;
3260+ expect ( args ) . toEqual ( [ 1 ] ) ;
3261+ } ) ) ;
3262+
32493263 it ( 'should only be passed the intercepted value when double-intercepted' ,
32503264 inject ( function ( $parse ) {
32513265 var args1 ;
You can’t perform that action at this time.
0 commit comments