From 8579f2f4981f498c92e7e3f5701b0d3eb4c971e7 Mon Sep 17 00:00:00 2001 From: Brad Robertson Date: Tue, 25 Oct 2011 23:00:24 -0400 Subject: [PATCH] fix 542 pushState was called with wrong number of args --- src/scrollable/scrollable.navigator.js | 4 +- test/scrollable/history.html | 84 ++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 test/scrollable/history.html diff --git a/src/scrollable/scrollable.navigator.js b/src/scrollable/scrollable.navigator.js index c2f6ef1..451dba8 100644 --- a/src/scrollable/scrollable.navigator.js +++ b/src/scrollable/scrollable.navigator.js @@ -60,7 +60,7 @@ if (hashed) { - history.pushState({i: 0}); + history.pushState({i: 0}, ''); $(window).bind("popstate", function(evt) { var s = evt.originalEvent.state; @@ -71,7 +71,7 @@ function doClick(el, i, e) { api.seekTo(i); e.preventDefault(); - if (hashed) { history.pushState({i: i}); } + if (hashed) { history.pushState({i: i}, ''); } } function els() { diff --git a/test/scrollable/history.html b/test/scrollable/history.html new file mode 100644 index 0000000..d4a6d9b --- /dev/null +++ b/test/scrollable/history.html @@ -0,0 +1,84 @@ + + + + + + + + + + + + +
+ + +
+ + +
[ story html ]
+
[ features html ]
+
[ plugins html ]
+
[ demos html ]
+ +
+ +
+ + \ No newline at end of file