瀏覽代碼

use applyAsync for compile (#5287)

Mitsuhiro Tanda 9 年之前
父節點
當前提交
25899b72d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/core/directives/plugin_component.ts

+ 1 - 1
public/app/core/directives/plugin_component.ts

@@ -211,7 +211,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
     // let a binding digest cycle complete before adding to dom
     setTimeout(function() {
       elem.append(child);
-      scope.$apply(function() {
+      scope.$applyAsync(function() {
         scope.$broadcast('refresh');
       });
     });