Skip to content

Commit ce1ed32

Browse files
author
Anthony Du Pont
committed
✨ Release v2.0.6
1 parent 6bf7a06 commit ce1ed32

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

build/es5/highway.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ function (_Emitter) {
28562856

28572857
_this.cache = new Map();
28582858

2859-
_this.cache.set(_this.location.url, _this.properties); // Get the page renderer and properly setup it.
2859+
_this.cache.set(_this.location.href, _this.properties); // Get the page renderer and properly setup it.
28602860

28612861

28622862
_this.properties.renderer.then(function (Renderer) {
@@ -3100,7 +3100,7 @@ function (_Emitter) {
31003100
// don't use any caching system everytime we would come back to a page we
31013101
// already saw we will have to fetch it again and it's pointless.
31023102

3103-
if (!this.cache.has(this.location.url)) {
3103+
if (!this.cache.has(this.location.href)) {
31043104
_context2.next = 8;
31053105
break;
31063106
}
@@ -3110,7 +3110,7 @@ function (_Emitter) {
31103110

31113111
case 5:
31123112
// Get Properties
3113-
this.properties = this.cache.get(this.location.url);
3113+
this.properties = this.cache.get(this.location.href);
31143114
_context2.next = 13;
31153115
break;
31163116

@@ -3125,7 +3125,7 @@ function (_Emitter) {
31253125
this.properties = this.Helpers.getProperties(results[0]); // We cache our result
31263126
// eslint-disable-next-line
31273127

3128-
this.cache.set(this.location.url, this.properties);
3128+
this.cache.set(this.location.href, this.properties);
31293129

31303130
case 13:
31313131
this.pushState();

build/es5/highway.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/es5/highway.min.js.gz

-5 Bytes
Binary file not shown.

build/highway.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ class core_Core extends tiny_emitter_default.a {
534534

535535
// Cache
536536
this.cache = new Map();
537-
this.cache.set(this.location.url, this.properties);
537+
this.cache.set(this.location.href, this.properties);
538538

539539
// Get the page renderer and properly setup it.
540540
this.properties.renderer.then(Renderer => {
@@ -687,12 +687,12 @@ class core_Core extends tiny_emitter_default.a {
687687
// We have to verify our cache in order to save some HTTPRequests. If we
688688
// don't use any caching system everytime we would come back to a page we
689689
// already saw we will have to fetch it again and it's pointless.
690-
if (this.cache.has(this.location.url)) {
690+
if (this.cache.has(this.location.href)) {
691691
// We wait until the view is hidden.
692692
await this.From.hide();
693693

694694
// Get Properties
695-
this.properties = this.cache.get(this.location.url);
695+
this.properties = this.cache.get(this.location.href);
696696

697697
} else {
698698
// We wait till all our Promises are resolved.
@@ -707,7 +707,7 @@ class core_Core extends tiny_emitter_default.a {
707707

708708
// We cache our result
709709
// eslint-disable-next-line
710-
this.cache.set(this.location.url, this.properties);
710+
this.cache.set(this.location.href, this.properties);
711711
}
712712

713713
this.pushState();

build/highway.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/highway.min.js.gz

-2 Bytes
Binary file not shown.

docs/assets/js/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@dogstudio/highway",
33
"license": "MIT",
4-
"version": "2.0.5",
4+
"version": "2.0.6",
55
"main": "assets/js/main.js",
66
"scripts": {
77
"build": "webpack && jekyll build",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@dogstudio/highway",
33
"license": "MIT",
4-
"version": "2.0.5",
4+
"version": "2.0.6",
55
"description": "Highway helps you manage your page transitions",
66
"main": "build/highway.js",
77
"unpkg": "build/highway.min.js",

src/core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class Core extends Emitter {
3232

3333
// Cache
3434
this.cache = new Map();
35-
this.cache.set(this.location.url, this.properties);
35+
this.cache.set(this.location.href, this.properties);
3636

3737
// Get the page renderer and properly setup it.
3838
this.properties.renderer.then(Renderer => {
@@ -185,12 +185,12 @@ export default class Core extends Emitter {
185185
// We have to verify our cache in order to save some HTTPRequests. If we
186186
// don't use any caching system everytime we would come back to a page we
187187
// already saw we will have to fetch it again and it's pointless.
188-
if (this.cache.has(this.location.url)) {
188+
if (this.cache.has(this.location.href)) {
189189
// We wait until the view is hidden.
190190
await this.From.hide();
191191

192192
// Get Properties
193-
this.properties = this.cache.get(this.location.url);
193+
this.properties = this.cache.get(this.location.href);
194194

195195
} else {
196196
// We wait till all our Promises are resolved.
@@ -205,7 +205,7 @@ export default class Core extends Emitter {
205205

206206
// We cache our result
207207
// eslint-disable-next-line
208-
this.cache.set(this.location.url, this.properties);
208+
this.cache.set(this.location.href, this.properties);
209209
}
210210

211211
this.pushState();

0 commit comments

Comments
 (0)