mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(docs): key-binding used old scope apis
This commit is contained in:
parent
ce73ed091b
commit
e28171d5e4
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue