Created
April 21, 2015 19:55
-
-
Save dcherman/5dbd3b63fe4cfe6f55ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function decorateExpressionBindings( binding, scope, attrs ) { | |
| var delegate = $parse( attrs[ binding ] ).$$watchDelegate, | |
| actualBinding = scope[ binding ]; | |
| if ( parsed.$$watchDelegate ) { | |
| actualBinding.$$watchDelegate = function( scope, listener, objectEquality, parsedExpression ) { | |
| return delegate( scope.$parent, listener, objectEquality, parsedExpression ); | |
| }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment