since we patch $watch to be able to run performance timers, we always pass a function to the original $watch which in turn passes it to $parse where only string expressions is allowed to be a one time binding which means our patch breaks one time binding expressions. Skip one perf timers for one time binding since it isn't too helpful anyways since its only a one time bind.
We will ask the angular team for some introspection hooks and a strict mode so that we don't have to keep on patching angular core methods to be able to run perf timers.
since we patch
$watch
to be able to run performance timers, we always pass a function to the original$watch
which in turn passes it to$parse
where only string expressions is allowed to be a one time binding which means our patch breaks one time binding expressions. Skip one perf timers for one time binding since it isn't too helpful anyways since its only a one time bind.We will ask the angular team for some introspection hooks and a strict mode so that we don't have to keep on patching angular core methods to be able to run perf timers.
fixes: https://github.com/angular/angularjs-batarang/issues/209