mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This commit is contained in:
parent
693af182c7
commit
20d5d0eee6
@ -24,14 +24,14 @@ function ($, angular, _) {
|
||||
$tooltip.appendTo(document.body);
|
||||
|
||||
if (opts.compile) {
|
||||
angular.element(document).injector().invoke(function($compile, $rootScope) {
|
||||
angular.element(document).injector().invoke(["$compile", "$rootScope", function($compile, $rootScope) {
|
||||
var tmpScope = $rootScope.$new(true);
|
||||
_.extend(tmpScope, opts.scopeData);
|
||||
|
||||
$compile($tooltip)(tmpScope);
|
||||
tmpScope.$digest();
|
||||
//tmpScope.$destroy();
|
||||
});
|
||||
tmpScope.$destroy();
|
||||
}]);
|
||||
}
|
||||
|
||||
width = $tooltip.outerWidth(true);
|
||||
|
Loading…
Reference in New Issue
Block a user