Przeglądaj źródła

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

Torkel Ödegaard 10 lat temu
rodzic
commit
20d5d0eee6
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      public/app/components/extend-jquery.js

+ 3 - 3
public/app/components/extend-jquery.js

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