unpoly-rails 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of unpoly-rails might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beba0d8578cac674b4e6cda8f8a062eae1217198fdc6e1f6e0a525b6bb61c395
4
- data.tar.gz: 6b962622c193cd2c3910c0dba3830a092dbfb6c7b02ea58ce47d15765dc488a4
3
+ metadata.gz: ed64f466ecfb5e18ddf92d981d0082d87dc6ba0933d4b2ead19fc719555a5ec8
4
+ data.tar.gz: 8e1f3645c1578284ff2683103718768de9a13919f68f32c524aa987d2a50ba61
5
5
  SHA512:
6
- metadata.gz: 00ce246b00f89e57b7996c42489e72ba249d2976747d8a46bb21a5ebd35dd3575f29acb1b00bbd012b44c25633c1d3cb41c67be4748fe0feb6044b349475eede
7
- data.tar.gz: c07e6975fe87448e624eb5be7d90a862a9abdb9a4f07a970acee59dd106d0499adec32a884a18b341e38c1de1d2cb35df336ef9ef3194f7eb0ffb0a796eb3491
6
+ metadata.gz: 268e09d0b71d55d8ff10a7d8c82d2b6b012a02668f14b0d442ccf7833162e25b1ccc9d1dc2ee246d56acc7aaff05236efff9fa3f5c60b08455f834b73e6cfb12
7
+ data.tar.gz: e3692c858269706bda893298c2ef725d38013319c817c54b0641d2e4dc19ad18c82e1a7f3ce474c78560733d972701c59a49d7d91ee8b3a9478ae64d56602844
@@ -8,7 +8,7 @@
8
8
  @module up
9
9
  */
10
10
  window.up = {
11
- version: '2.4.0'
11
+ version: '2.4.1'
12
12
  };
13
13
 
14
14
 
@@ -7294,13 +7294,16 @@ up.Layer = /** @class */ (function (_super) {
7294
7294
  }
7295
7295
  };
7296
7296
  Layer.prototype.restoreHistory = function () {
7297
+ if (!this.showsLiveHistory()) {
7298
+ return;
7299
+ }
7297
7300
  if (this.savedLocation) {
7301
+ // We cannot use the `this.title` setter as that does not
7302
+ // push a state if `newLocation === this.savedLocation`.
7298
7303
  up.history.push(this.savedLocation);
7299
- this.savedLocation = null;
7300
7304
  }
7301
7305
  if (this.savedTitle) {
7302
7306
  document.title = this.savedTitle;
7303
- this.savedTitle = null;
7304
7307
  }
7305
7308
  };
7306
7309
  /*-