mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-14 17:53:11 +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
|
// bind escape to hash reset callback
|
||||||
angular.element(window).bind('keydown', function(e) {
|
angular.element(window).bind('keydown', function(e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27) {
|
||||||
scope.subpage = false;
|
scope.$apply(function() {
|
||||||
scope.$eval();
|
scope.subpage = false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue