Skip to content

Commit 748f053

Browse files
committed
fix history for jquery 1.4.3
1 parent d65b237 commit 748f053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/toolbox/toolbox.history.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
h = idoc.location.hash;
3535

3636
if (hash !== h) {
37-
$.event.trigger("hash", h);
37+
$('body').trigger("hash", h);
3838
}
3939
}, 100);
4040

@@ -47,7 +47,7 @@
4747
setInterval(function() {
4848
var h = location.hash;
4949
if (h !== hash) {
50-
$.event.trigger("hash", h);
50+
$('body').trigger("hash", h);
5151
}
5252
}, 100);
5353
}
@@ -80,7 +80,7 @@
8080
}
8181

8282
// global histroy change listener
83-
$(window).bind("hash", function(e, h) {
83+
$("body").bind("hash", function(e, h) {
8484
if (h) {
8585
links.filter(function() {
8686
var href = $(this).attr("href");

0 commit comments

Comments
 (0)