sudojs-rails 0.5.3 → 0.5.4

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
  SHA1:
3
- metadata.gz: b335124bd3f573c78ba8b97c203fd8c22aa9bbd2
4
- data.tar.gz: 4ddebbc8b02899b70b745f4f5283e679a004beac
3
+ metadata.gz: ee9300e874fa0fdcd967acbc29597e642ffd823b
4
+ data.tar.gz: 200973d4c5bb4f220e06a1d566f060310924b795
5
5
  SHA512:
6
- metadata.gz: 817e532d80a8fcaf0d1578946dca62aa3af61e3c3d54ec3572153751c4a602e9135473a3a48af3aa048ef2edc1fbfcaa800a4fde6c9da458cf79dc7b89757295
7
- data.tar.gz: f9e95e817a8053c93bca274bc5637d5d15125002027794f1e2083a79ee0b25323b7515c256400c2d031c8c0e8ae0ebd849a1a1cb8d7afe9eea156dd2f84d3a1c
6
+ metadata.gz: 9ba5c7d810fbde242a538aa14f6a8972aed7f9ec8462632a8790f87e7432e6171512d24dfb4bdd26e06d0fc6a63e6b584c70ccc7aca51fd56005c091c672b766
7
+ data.tar.gz: 5bd6329229084695d1706991b6a5fc9996f20705cc24210e8b6392e10660bbd6ba867f0c996cc9092af5d7f0018f49147bdbf18a0b5ba491d0932a82da9d1c80
@@ -1,3 +1,3 @@
1
1
  module Sudojs
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
@@ -874,7 +874,7 @@ sudo.Navigator.prototype = Object.create(sudo.Model.prototype);
874
874
  sudo.Navigator.prototype.getFragment = function getFragment(fragment) {
875
875
  var root = this.data.root;
876
876
  if(!fragment) {
877
- // intentional use of coersion
877
+ // intentional use of coersion
878
878
  if (this.isPushState) {
879
879
  fragment = window.location.pathname;
880
880
  root = root.replace(this.trailingStripper, '');
@@ -1034,7 +1034,9 @@ sudo.Navigator.prototype.urlChanged = function urlChanged(fragment) {
1034
1034
  // nothing has changed
1035
1035
  if (current === this.data.fragment) return false;
1036
1036
  this.data.fragment = current;
1037
- this.data.query = this.getSearch(current) || this.getHash(current);
1037
+ // the fragment and the href need to checked here, optimized for the 'go' scenario
1038
+ this.data.query = (this.getSearch(current) || this.getSearch()) ||
1039
+ (this.getHash(current) || this.getHash());
1038
1040
  return true;
1039
1041
  };
1040
1042
  // ## Observable Extension Object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudojs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - robrobbins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Install the latest versions of sudo.js and provide generators for fast
14
14
  and easy use.