5
<title>Chrome early pushState bug</title>
9
<h1>Chrome early pushState bug</h1>
11
<script src="../../../../build/yui/yui.js"></script>
13
window.onpopstate = function (e) {
14
console.log('popstate: ' + window.location.pathname);
18
// Create a new YUI instance and populate it with the required modules.
19
YUI({filter: 'raw'}).use('controller', function (Y) {
20
var controller = new Y.Controller({
24
{path: '/', callback: function () { console.log('Hello!'); }},
25
{path: '/pie', callback: function () { console.log('Mmm. Pie.'); }}
29
window.controller = controller;
30
controller.save("/pie");
32
controller.save("/pie");