angular-ui/ui-codemirror — pull request #74 by 43081j (2014-11-26 12:13:33+00:00)
Title: Use applyAsync instead of apply, to avoid digest in progress issues

There are quite a few cases where this `$apply` call causes the usual `digest in progress` error.

Using `$applyAsync` seems to solve the issue as we don't really care about changing it immediately, but rather on the next digest.