Comparing version 0.2.10 to 0.2.11
@@ -669,9 +669,2 @@ // Generated by CoffeeScript 1.4.0 | ||
_this = this; | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
onpopstate = function(e) { | ||
@@ -719,4 +712,13 @@ if (e.state) { | ||
}; | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
if (history.pushState) { | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
} | ||
}; | ||
@@ -723,0 +725,0 @@ |
@@ -678,9 +678,2 @@ /* | ||
_this = this; | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
onpopstate = function(e) { | ||
@@ -728,4 +721,13 @@ if (e.state) { | ||
}; | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
if (history.pushState) { | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
} | ||
}; | ||
@@ -732,0 +734,0 @@ |
@@ -679,9 +679,2 @@ /* | ||
_this = this; | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
onpopstate = function(e) { | ||
@@ -729,4 +722,13 @@ if (e.state) { | ||
}; | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
if (history.pushState) { | ||
this.on('page', function(ctx) { | ||
if (ctx.replace) { | ||
return history.replaceState(ctx.state, '', ctx.canonicalPath); | ||
} else { | ||
return history.pushState(ctx.state, '', ctx.canonicalPath); | ||
} | ||
}); | ||
window.addEventListener('popstate', onpopstate, false); | ||
return highbrow.$(window).bind('click', onclick); | ||
} | ||
}; | ||
@@ -733,0 +735,0 @@ |
{ "name": "highbrow" | ||
, "version": "0.2.10" | ||
, "version": "0.2.11" | ||
, "description": "A Backbone Base Framework" | ||
@@ -4,0 +4,0 @@ , "main": "lib/highbrow.js" |
Sorry, the diff of this file is not supported yet
323530
5475