diff options
| author | Vojta Jina | 2011-05-31 22:52:44 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-06-02 10:50:39 -0700 |
| commit | 50076b571da522cf6d2cb92c28519694727e9c31 (patch) | |
| tree | 778d736825ca6b03784af7ce020ec7511a270dcc /regression/issue-353.html | |
| parent | aa64d37a23d743d325b9d95cd4725042cca430db (diff) | |
| download | angular.js-50076b571da522cf6d2cb92c28519694727e9c31.tar.bz2 | |
Fix hashchange event on IE8 compatibility mode
Stupid IE8 in compatibility mode or in IE7 mode returns true for `('onhashchange' in window)`, but does not support hashchange event.
Closes #353
Diffstat (limited to 'regression/issue-353.html')
| -rw-r--r-- | regression/issue-353.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/regression/issue-353.html b/regression/issue-353.html new file mode 100644 index 00000000..8410adf4 --- /dev/null +++ b/regression/issue-353.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML> +<html xmlns:ng="http://angularjs.org"> + <script type="text/javascript" src="../build/angular.js" ng:autobind></script> + <script type="text/javascript"> + function Cntl($route) { + $route.when('/item1', {}); + $route.when('/item2', {}); + $route.onChange(function() { + alert('change'); + }); + } + Cntl.$inject = ['$route']; + </script> + <body ng:controller="Cntl"> + <a href="#/item1">test</a> + <a href="#/item2">test</a> + </body> +</html> |
