Просмотр исходного кода

feat(panel): performance improvement for loading panels, closes #2994

Torkel Ödegaard 10 лет назад
Родитель
Сommit
58497ed596
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      public/app/app.js

+ 1 - 6
public/app/app.js

@@ -100,12 +100,7 @@ function (angular, $, _, appLevelRequire) {
                 var $scope = this;
                 $scope.requireContext(deps, function () {
                   var deps = _.toArray(arguments);
-                  // Check that this is a valid scope.
-                  if($scope.$id) {
-                    $scope.$apply(function () {
-                      fn.apply($scope, deps);
-                    });
-                  }
+                  fn.apply($scope, deps);
                 });
               };
             }]);