browser-history-lite
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,3 +5,3 @@ | ||
/* | ||
* @version 0.0.3 | ||
* @version 0.0.4 | ||
* @author Lauri Rooden - https://github.com/litejs/browser-history-lite | ||
@@ -57,3 +57,3 @@ * @license MIT License - http://lauri.rooden.ee/mit-license.txt | ||
function setUrl(url, replace) { | ||
url = encodeURIComponent(url).replace(/%20/g, "+") | ||
url = encodeURIComponent(url).replace(/%20/g, "+").replace(/%2F/gi, "/") | ||
if (base) { | ||
@@ -60,0 +60,0 @@ his[replace ? "replaceState" : "pushState"](null, null, base + url) |
@@ -1,2 +0,2 @@ | ||
!function(l,m,e){function c(a){a=f?n.pathname.slice(f.length):(a||n).href.split("#")[1]||"";a=decodeURIComponent(a.replace(/\+/g," "));return a.replace(s,"")}function q(a,d){a=encodeURIComponent(a).replace(/%20/g,"+");if(f)e[d?"replaceState":"pushState"](null,null,f+a);else if(n[d?"replace":"assign"]("#"+a),b&&c()!==c(b.location))b.location[d?"replace":b.document.open().close(),"assign"]("#"+a);g()}function g(){p!=(p=c())&&h&&h(p)}var h,f,p,b,k,n=location,s=/^[#\/\!]+|[\s\/]+$/g,r=!+"\v1"&&8>(m.documentMode|| | ||
1);e.getUrl=c;e.setUrl=q;e.start=function(a,d){h||(d&&e.pushState?(f=d,l.onpopstate=g):"onhashchange"in l&&!r?l.onhashchange=g:(r&&(b=m.body.appendChild(m.createElement('<iframe class="hide" src="javascript:0" tabindex="-1" />')).contentWindow),k=c(),setInterval(function(){var a=c();b&&k===a&&(a=c(b.location));k!==a&&(k=a,b?q(a):g())},50)));h=a;g()}}(this,document,history); | ||
!function(l,m,e){function c(a){a=f?n.pathname.slice(f.length):(a||n).href.split("#")[1]||"";a=decodeURIComponent(a.replace(/\+/g," "));return a.replace(s,"")}function q(a,d){a=encodeURIComponent(a).replace(/%20/g,"+").replace(/%2F/gi,"/");if(f)e[d?"replaceState":"pushState"](null,null,f+a);else if(n[d?"replace":"assign"]("#"+a),b&&c()!==c(b.location))b.location[d?"replace":b.document.open().close(),"assign"]("#"+a);g()}function g(){p!=(p=c())&&h&&h(p)}var h,f,p,b,k,n=location,s=/^[#\/\!]+|[\s\/]+$/g, | ||
r=!+"\v1"&&8>(m.documentMode||1);e.getUrl=c;e.setUrl=q;e.start=function(a,d){h||(d&&e.pushState?(f=d,l.onpopstate=g):"onhashchange"in l&&!r?l.onhashchange=g:(r&&(b=m.body.appendChild(m.createElement('<iframe class="hide" src="javascript:0" tabindex="-1" />')).contentWindow),k=c(),setInterval(function(){var a=c();b&&k===a&&(a=c(b.location));k!==a&&(k=a,b?q(a):g())},50)));h=a;g()}}(this,document,history); |
{ | ||
"name": "browser-history-lite", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "History helper for browser", |
@@ -6,4 +6,4 @@ | ||
@version 0.0.3 | ||
@date 2013-07-13 | ||
@version 0.0.4 | ||
@date 2013-10-02 | ||
@@ -16,3 +16,3 @@ | ||
Download [compressed][1] | ||
(892 bytes, 591 bytes gzipped) | ||
(913 bytes, 600 bytes gzipped) | ||
or [uncompressed][2] source. | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10081
8
0