Commit 25899b72 by Mitsuhiro Tanda Committed by Torkel Ödegaard

use applyAsync for compile (#5287)

parent f877afb7
...@@ -211,7 +211,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $ ...@@ -211,7 +211,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
// let a binding digest cycle complete before adding to dom // let a binding digest cycle complete before adding to dom
setTimeout(function() { setTimeout(function() {
elem.append(child); elem.append(child);
scope.$apply(function() { scope.$applyAsync(function() {
scope.$broadcast('refresh'); scope.$broadcast('refresh');
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment