Roo/History.js
authorAlan Knowles <alan@roojs.com>
Fri, 15 Apr 2016 08:28:45 +0000 (16:28 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Apr 2016 08:28:45 +0000 (16:28 +0800)
Roo/History.js

index 5bbdfd9..0449e77 100644 (file)
@@ -304,9 +304,9 @@ Roo.History = {
                                 */
 
                                // Setup Alias
-                               this.Adapter.bind(window,'hashchange',function(){
+                               Roo.get(window).on('hashchange',function(){
                                        Roo.get(window).fireEvent('popstate');
-                               });
+                               }, this);
 
                                // Initialise Alias
                                if ( this.getHash() ) {