eyeballs 0.5.7 → 0.5.7.1
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.
- data/CHANGELOG +1 -0
- data/Rakefile +1 -1
- data/eyeballs.gemspec +1 -1
- data/src/drivers/jquery/modules/o_O.routes.js +11 -3
- metadata +3 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/eyeballs.gemspec
CHANGED
@@ -60,9 +60,10 @@ o_O.routes = {
|
|
60
60
|
{
|
61
61
|
o_O.routes.rules['root'].action();
|
62
62
|
}
|
63
|
+
|
63
64
|
}
|
64
65
|
|
65
|
-
|
66
|
+
var route_on_hash = function(){
|
66
67
|
var hash = location.hash.replace(/^(#)/, '').o_O_trim('/');
|
67
68
|
if(o_O.routes.urls.indexOf(hash) >= 0)
|
68
69
|
{
|
@@ -93,7 +94,9 @@ o_O.routes = {
|
|
93
94
|
}
|
94
95
|
}
|
95
96
|
}
|
96
|
-
}
|
97
|
+
}
|
98
|
+
|
99
|
+
$(window).bind( 'hashchange', route_on_hash);
|
97
100
|
|
98
101
|
$('a').live('click', function(){
|
99
102
|
if($(this).is('a[data-ajax-history=true]'))
|
@@ -102,6 +105,11 @@ o_O.routes = {
|
|
102
105
|
return false;
|
103
106
|
}
|
104
107
|
});
|
105
|
-
|
108
|
+
|
109
|
+
if(location.hash != '')
|
110
|
+
{
|
111
|
+
route_on_hash();
|
112
|
+
}
|
113
|
+
})
|
106
114
|
}
|
107
115
|
}
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyeballs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 121
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
9
|
- 7
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.5.7.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Paul Campbell
|