browser-history-lite
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,4 +6,4 @@ /*! litejs.com/MIT-LICENSE.txt */ | ||
/* | ||
* @version 0.1.3 | ||
* @date 2015-03-24 | ||
* @version 0.1.4 | ||
* @date 2015-04-23 | ||
* @stability 2 - Unstable | ||
@@ -114,3 +114,2 @@ * @author Lauri Rooden <lauri@rooden.ee> | ||
} | ||
last = getUrl() | ||
tick = setInterval(function(){ | ||
@@ -123,3 +122,3 @@ var cur = getUrl() | ||
} | ||
}, 50) | ||
}, 60) | ||
} | ||
@@ -126,0 +125,0 @@ } |
/*! litejs.com/MIT-LICENSE.txt */ | ||
!function(l,h,e){function c(a){a=(a||m).href.split("#")[1]||"";a=decodeURIComponent(a.replace(/\+/g," "));return a.replace(q,"")}function n(a,d){a=encodeURIComponent(a).replace(/%20/g,"+").replace(/%2F/gi,"/");m[d?"replace":"assign"]("#"+a);if(b&&c()!==c(b.location))b.location[d?"replace":b.document.open().close(),"assign"]("#"+a);f()}function f(){k!=(k=c())&&d&&d(k)}var d,k,b,g,m=location,q=/^[#\/\!]+|[\s\/]+$/g,p=!+"\v1"&&8>(h.documentMode||1);e.getUrl=c;e.setUrl=n;e.start=function(a,e){d||("onhashchange"in | ||
l&&!p?l.onhashchange=f:(p&&(b=h.body.appendChild(h.createElement('<iframe class="hide" tabindex="-1">')).contentWindow),g=c(),setInterval(function(){var a=c();b&&g===a&&(a=c(b.location));g!==a&&(g=a,b?n(a):f())},50)));d=a;f()}}(this,document,history); | ||
!function(l,g,e){function d(a){a=(a||m).href.split("#")[1]||"";a=decodeURIComponent(a.replace(/\+/g," "));return a.replace(q,"")}function n(a,c){a=encodeURIComponent(a).replace(/%20/g,"+").replace(/%2F/gi,"/");m[c?"replace":"assign"]("#"+a);if(b&&d()!==d(b.location))b.location[c?"replace":b.document.open().close(),"assign"]("#"+a);f()}function f(){h!=(h=d())&&c&&c(h)}var c,h,b,k,m=location,q=/^[#\/\!]+|[\s\/]+$/g,p=!+"\v1"&&8>(g.documentMode||1);e.getUrl=d;e.setUrl=n;e.start=function(a,e){c||("onhashchange"in | ||
l&&!p?l.onhashchange=f:(p&&(b=g.body.appendChild(g.createElement('<iframe class="hide" tabindex="-1">')).contentWindow),setInterval(function(){var a=d();b&&k===a&&(a=d(b.location));k!==a&&(k=a,b?n(a):f())},60)));c=a;f()}}(this,document,history); |
/*! litejs.com/MIT-LICENSE.txt */ | ||
!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(t,"")}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,t=/^[#\/\!]+|[\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" 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(k,l,e){function c(a){a=f?m.pathname.slice(f.length):(a||m).href.split("#")[1]||"";a=decodeURIComponent(a.replace(/\+/g," "));return a.replace(t,"")}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(m[d?"replace":"assign"]("#"+a),b&&c()!==c(b.location))b.location[d?"replace":b.document.open().close(),"assign"]("#"+a);g()}function g(){n!=(n=c())&&h&&h(n)}var h,f,n,b,p,m=location,t=/^[#\/\!]+|[\s\/]+$/g, | ||
r=!+"\v1"&&8>(l.documentMode||1);e.getUrl=c;e.setUrl=q;e.start=function(a,d){h||(d&&e.pushState?(f=d,k.onpopstate=g):"onhashchange"in k&&!r?k.onhashchange=g:(r&&(b=l.body.appendChild(l.createElement('<iframe class="hide" tabindex="-1">')).contentWindow),setInterval(function(){var a=c();b&&p===a&&(a=c(b.location));p!==a&&(p=a,b?q(a):g())},60)));h=a;g()}}(this,document,history); |
@@ -5,4 +5,4 @@ | ||
/* | ||
* @version 0.1.3 | ||
* @date 2015-03-24 | ||
* @version 0.1.4 | ||
* @date 2015-04-23 | ||
* @stability 2 - Unstable | ||
@@ -113,3 +113,2 @@ * @author Lauri Rooden <lauri@rooden.ee> | ||
} | ||
last = getUrl() | ||
tick = setInterval(function(){ | ||
@@ -122,3 +121,3 @@ var cur = getUrl() | ||
} | ||
}, 50) | ||
}, 60) | ||
} | ||
@@ -125,0 +124,0 @@ } |
{ | ||
"name": "browser-history-lite", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"stability": 2, | ||
@@ -29,4 +29,4 @@ "author": "Lauri Rooden <lauri@rooden.ee>", | ||
"devDependencies": { | ||
"buildman": "0.2.28", | ||
"testman": "0.1.9" | ||
"buildman": "0.2.31", | ||
"testman": "0.1.10" | ||
}, | ||
@@ -42,7 +42,5 @@ "buildman": { | ||
"banner": "/*! litejs.com/MIT-LICENSE.txt */", | ||
"input": [ | ||
"index.js" | ||
] | ||
"input": "index.js" | ||
} | ||
} | ||
} |
@version 0.1.3 | ||
@date 2015-03-24 | ||
@version 0.1.4 | ||
@date 2015-04-23 | ||
@stability 2 - Unstable | ||
@@ -6,0 +6,0 @@ |
11466
232