Fixed issue with annotations that only occurs in optimized build, Fixes #2176, Fixes #2239

This commit is contained in:
Torkel Ödegaard 2015-06-26 19:42:33 +02:00
parent 693af182c7
commit 20d5d0eee6

View File

@ -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);