sudojs-rails 0.5.3 → 0.5.4
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/lib/sudojs/version.rb +1 -1
- data/vendor/assets/javascripts/sudojs/sudo.js +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee9300e874fa0fdcd967acbc29597e642ffd823b
|
|
4
|
+
data.tar.gz: 200973d4c5bb4f220e06a1d566f060310924b795
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ba5c7d810fbde242a538aa14f6a8972aed7f9ec8462632a8790f87e7432e6171512d24dfb4bdd26e06d0fc6a63e6b584c70ccc7aca51fd56005c091c672b766
|
|
7
|
+
data.tar.gz: 5bd6329229084695d1706991b6a5fc9996f20705cc24210e8b6392e10660bbd6ba867f0c996cc9092af5d7f0018f49147bdbf18a0b5ba491d0932a82da9d1c80
|
data/lib/sudojs/version.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
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.
|