Commit 58497ed5 by Torkel Ödegaard

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

parent ae81fbdf
......@@ -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);
});
};
}]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment