JimLiu/angular-ui-tree #68: invoke callbacks in  phase