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

This commit is contained in:
Torkel Ödegaard 2015-10-21 11:22:53 -04:00
parent ae81fbdffe
commit 58497ed596

View File

@ -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);
});
};
}]);