dom_routes 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/assets/javascripts/dom_routes.js +1 -1
- data/lib/dom_routes/version.rb +1 -1
- 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: c9b78fb130cecc358b4d8fafae57717f1e425dd8
|
4
|
+
data.tar.gz: 029808e9f242c0a6c1e0eae47b5e78f5093cc524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e43e92f070a60c8b41100fe2eebd9b5539700f7309da161b5b42ec5bc69d7b4cc10194b2f72b9ac0062fccaac03d67b8c24ade90960c8d0a544111c0ea9008
|
7
|
+
data.tar.gz: 7f592fc95ac1b67cc81e874331b218478a8ba7ea715cb159f6a246e5896becdcf984a110f344f17efb74339db8952a103a5022a993e4ca3782a370aac6fcc68b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# DomRoutes
|
2
2
|
Auto-magical scaffolding for
|
3
3
|
[Paul Irish's DOM-based Routing](http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/)
|
4
4
|
(or Garber-Irish Implementation) way of organizing your javascript.
|
@@ -57,9 +57,10 @@ Add this to your `app/assets/javascripts/application.js`
|
|
57
57
|
Make sure your `app/views/layouts/application.html.erb` (and all your other layouts) looks like this:
|
58
58
|
```erb
|
59
59
|
<html>
|
60
|
-
<head
|
60
|
+
<head>...</head>
|
61
61
|
<body data-controller="<%= js_route.controller_path %>" data-action="<%= js_route.action %>">
|
62
62
|
…
|
63
|
+
<%= execute_js_routes %>
|
63
64
|
</body>
|
64
65
|
</html>
|
65
66
|
```
|
@@ -22,7 +22,7 @@ DR = {
|
|
22
22
|
},
|
23
23
|
define_namespace: function(namespace_string, definition) {
|
24
24
|
var found_namespace = DR.get_or_create(namespace_string);
|
25
|
-
return $.extend(found_namespace, definition);
|
25
|
+
return $.extend(true, found_namespace, definition);
|
26
26
|
},
|
27
27
|
|
28
28
|
traverse_namespace: function(namespace, levels) {
|
data/lib/dom_routes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dom_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s12chung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|