Преглед на файлове

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

Torkel Ödegaard преди 10 години
родител
ревизия
20d5d0eee6
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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);
         $tooltip.appendTo(document.body);
 
 
         if (opts.compile) {
         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);
             var tmpScope = $rootScope.$new(true);
             _.extend(tmpScope, opts.scopeData);
             _.extend(tmpScope, opts.scopeData);
 
 
             $compile($tooltip)(tmpScope);
             $compile($tooltip)(tmpScope);
             tmpScope.$digest();
             tmpScope.$digest();
-            //tmpScope.$destroy();
-          });
+            tmpScope.$destroy();
+          }]);
         }
         }
 
 
         width = $tooltip.outerWidth(true);
         width = $tooltip.outerWidth(true);