hooch 0.16.2 → 0.16.3
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hooch.js +6 -5
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ee565d3bef2b28344b0aae1ac36c836d20c50c27ce09f8d079201fb405669c8
|
|
4
|
+
data.tar.gz: 5f2bbfb2aa912095e264dc5a46591d2e2be9c313be3853ac552bb5b746a1ee15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|