unpoly-rails 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

@@ -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
 
@@ -6519,13 +6519,16 @@ up.Layer = class Layer extends up.Record {
6519
6519
  }
6520
6520
  }
6521
6521
  restoreHistory() {
6522
+ if (!this.showsLiveHistory()) {
6523
+ return;
6524
+ }
6522
6525
  if (this.savedLocation) {
6526
+ // We cannot use the `this.title` setter as that does not
6527
+ // push a state if `newLocation === this.savedLocation`.
6523
6528
  up.history.push(this.savedLocation);
6524
- this.savedLocation = null;
6525
6529
  }
6526
6530
  if (this.savedTitle) {
6527
6531
  document.title = this.savedTitle;
6528
- this.savedTitle = null;
6529
6532
  }
6530
6533
  }
6531
6534
  /*-