Comparing version 0.3.3 to 0.3.4
@@ -819,2 +819,5 @@ // Generated by CoffeeScript 1.7.1 | ||
e.preventDefault(); | ||
history.replaceState(_.extend({}, history.state, { | ||
scrollY: window.scrollY | ||
})); | ||
return _this.show(path); | ||
@@ -833,2 +836,3 @@ }; | ||
this.on('page', function(ctx) { | ||
window.scrollTo(0, ctx.state.scrollY || 0); | ||
if (ctx.replace) { | ||
@@ -835,0 +839,0 @@ return history.replaceState(ctx.state, '', ctx.canonicalPath); |
@@ -828,2 +828,5 @@ /* | ||
e.preventDefault(); | ||
history.replaceState(_.extend({}, history.state, { | ||
scrollY: window.scrollY | ||
})); | ||
return _this.show(path); | ||
@@ -842,2 +845,3 @@ }; | ||
this.on('page', function(ctx) { | ||
window.scrollTo(0, ctx.state.scrollY || 0); | ||
if (ctx.replace) { | ||
@@ -844,0 +848,0 @@ return history.replaceState(ctx.state, '', ctx.canonicalPath); |
@@ -829,2 +829,5 @@ /* | ||
e.preventDefault(); | ||
history.replaceState(_.extend({}, history.state, { | ||
scrollY: window.scrollY | ||
})); | ||
return _this.show(path); | ||
@@ -843,2 +846,3 @@ }; | ||
this.on('page', function(ctx) { | ||
window.scrollTo(0, ctx.state.scrollY || 0); | ||
if (ctx.replace) { | ||
@@ -845,0 +849,0 @@ return history.replaceState(ctx.state, '', ctx.canonicalPath); |
{ "name": "highbrow" | ||
, "version": "0.3.3" | ||
, "version": "0.3.4" | ||
, "description": "A Backbone Base Framework" | ||
@@ -4,0 +4,0 @@ , "main": "lib/highbrow.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
461448
8577