Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4aa4005

Browse files
chore(docs): AngularJS 1.2.x doesn't support '$includeContentError' event
1 parent d5c0412 commit 4aa4005

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/app/src/docs.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,14 @@ angular.module('DocsController', [])
2424
$window._gaq.push(['_trackPageview', pagePath]);
2525
});
2626

27-
$scope.$on('$includeContentError', function() {
28-
$scope.partialPath = 'Error404.html';
29-
});
30-
31-
3227
$scope.$watch(function docsPathWatch() {return $location.path(); }, function docsPathWatchAction(path) {
3328

3429
path = path.replace(/^\/?(.+?)(\/index)?\/?$/, '$1');
3530

36-
$scope.partialPath = 'partials/' + path + '.html';
37-
3831
currentPage = $scope.currentPage = NG_PAGES[path];
3932

4033
if ( currentPage ) {
34+
$scope.partialPath = 'partials/' + path + '.html';
4135
$scope.currentArea = NG_NAVIGATION[currentPage.area];
4236
var pathParts = currentPage.path.split('/');
4337
var breadcrumb = $scope.breadcrumb = [];
@@ -50,6 +44,7 @@ angular.module('DocsController', [])
5044
} else {
5145
$scope.currentArea = NG_NAVIGATION['api'];
5246
$scope.breadcrumb = [];
47+
$scope.partialPath = 'Error404.html';
5348
}
5449
});
5550

0 commit comments

Comments
 (0)