浏览代码

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

Torkel Ödegaard 10 年之前
父节点
当前提交
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);
                 });
               };
             }]);