JimLiu/angular-ui-tree — pull request #74 by fvlankvelt (2014-03-26 10:57:35+00:00)
Title: #68 - invoke callbacks in an $apply phase

Let the jQuery/jqLite event handlers enter angular's $apply phase.
The event handlers now wrap all calls to callbacks in a scope.$apply, to get them into the regular execution context.
This also eliminates the need for them to "sometimes [...] call $apply" themselves.