mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
feat(panel): performance improvement for loading panels, closes #2994
This commit is contained in:
parent
ae81fbdffe
commit
58497ed596
@ -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);
|
||||
});
|
||||
};
|
||||
}]);
|
||||
|
Loading…
Reference in New Issue
Block a user