hooch 0.16.2 → 0.16.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c712f45291247a384620361cb68c86b2168892ddb1d361e79336101e7d7c1d2d
4
- data.tar.gz: b610c84a24f7f2844c6c7b44c3668362df5701da5dfe53b69a2a5c0ba80605c5
3
+ metadata.gz: 3ee565d3bef2b28344b0aae1ac36c836d20c50c27ce09f8d079201fb405669c8
4
+ data.tar.gz: 5f2bbfb2aa912095e264dc5a46591d2e2be9c313be3853ac552bb5b746a1ee15
5
5
  SHA512:
6
- metadata.gz: 2450da53f1876328228ca9b9637987f100520578cfc03b21a8922f45c4e3f8c1fde991090a1ab23eaeaeff0311255d50a39f1ec13ce3587c24f511bfab270654
7
- data.tar.gz: 4bb9ebd3357e6a4231ea53f9744fc1d11a73e07429f0669408b8f104187af85cfed313bea02125714a98170c81da287b3350346af545e65c951e0ccf63497d0d
6
+ metadata.gz: 9aa606bb096c87b1a3a118db223811b619e8ecaf479ebce15c809c17e22e24c4036371f530476dc5b97c37b43b46cd5e15ff9f9d1eda25a713a4b6bfd451470d
7
+ data.tar.gz: 0cf2cce7c955617d15c044aea314bb7d0a3651dfc65a2b97c8efcde25025bfa510d89d21f7907d5fb724126b7ac8366ae5eb9e60e8289cee854a16d4efe8c612
@@ -661,7 +661,7 @@ var initHooch = function(){
661
661
  if (this.push_state && change_history) {
662
662
  var current_query = jQuery.extend(true, {}, hooch.beginning_params);
663
663
  current_query = jQuery.extend(true, current_query, history.state);
664
- var current_state = new hooch.IhHistoryState(current_query)
664
+ var current_state = new hooch.HistoryState(current_query)
665
665
  current_state.addState(this.tab_group_name, this.push_state);
666
666
  history[history_method](current_state.state, null, current_state.toUrl());
667
667
  }
@@ -681,7 +681,7 @@ var initHooch = function(){
681
681
  this.tab_group.resize();
682
682
  }
683
683
  }),
684
- IhHistoryState: Class.extend({
684
+ HistoryState: Class.extend({
685
685
  init: function(state){
686
686
  this.state = jQuery.extend(true, {}, state);
687
687
  },
@@ -769,7 +769,7 @@ var initHooch = function(){
769
769
  pushIt: function(){
770
770
  this.getNewParams()
771
771
  var history_pusher = this
772
- history_pusher.current_state = new hooch.IhHistoryState(history.state)
772
+ history_pusher.current_state = new hooch.HistoryState(history.state)
773
773
  $.each(this.new_params,function(new_key,new_value){
774
774
  history_pusher.current_state.addState(new_key,new_value)
775
775
  })
@@ -785,7 +785,7 @@ var initHooch = function(){
785
785
  })
786
786
  },
787
787
  replaceIt: function(){
788
- this.current_state = new hooch.IhHistoryState(history.state)
788
+ this.current_state = new hooch.HistoryState(history.state)
789
789
  this.current_state.replacePath(this.new_path)
790
790
  }
791
791
  }),
@@ -2374,7 +2374,8 @@ var initHooch = function(){
2374
2374
  })
2375
2375
  });
2376
2376
  $(window).bind("popstate", function(e){
2377
- var previous_state = new hooch.IhHistoryState(e.originalEvent.state)
2377
+ if(e.originalEvent.state.thin_man){return true}
2378
+ var previous_state = new hooch.HistoryState(e.originalEvent.state)
2378
2379
  $.each(previous_state.state, function(key,value){
2379
2380
  var tab_group = hooch.TabGroup.find(key)
2380
2381
  if(tab_group){
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.16.2"
2
+ VERSION = "0.16.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2018-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails