mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-18 07:50:52 +08:00
fix(docs): key-binding used old scope apis
This commit is contained in:
@@ -100,8 +100,9 @@ function DocsController($location, $browser, $window, $cookies) {
|
||||
// bind escape to hash reset callback
|
||||
angular.element(window).bind('keydown', function(e) {
|
||||
if (e.keyCode === 27) {
|
||||
scope.subpage = false;
|
||||
scope.$eval();
|
||||
scope.$apply(function() {
|
||||
scope.subpage = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user