fix(docs): key-binding used old scope apis

This commit is contained in:
Igor Minar 2011-10-21 22:53:25 -07:00
parent ce73ed091b
commit e28171d5e4

View file

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