rails-js-routes 0.3.1 → 0.3.2

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: ee5fb893e8e72ee0fd96477a9d3c6c848f491f1a
4
- data.tar.gz: 833d97ce099fed4e97afc1e9b1bbf59eac00c481
3
+ metadata.gz: 5574c0e71370f11c928cc7c448b1a987b526a01c
4
+ data.tar.gz: a1a8cb5d995f57281003b9501e3777d458704730
5
5
  SHA512:
6
- metadata.gz: de3647ac1daa756d9743298eea5c20dd40ad6a5a708f3919298d7b1fffefd618565a249e4a9ff5efe4b97814a5a9123d97d4f051c1d50fbc5131f079ca2ca073
7
- data.tar.gz: e3cf1e42eb263177f771e1c36f6a901ebf26705d99f3a5d562e8490caa5cbf93c4ac22da028f871bc08f063347246dde1395c853751507f5119aa7e536980291
6
+ metadata.gz: 0cc7ee81ebed4709086ae50a9b6e44dd1fb097d4060f28f12223ce7f570b6224aa13af8a3a088422d7525aa532871d2579f3576089c2dd0fe3f8f6136e6e663f
7
+ data.tar.gz: bdc43a65a75f52c7868528d619dcbb2c69e101f0288b299a84146cce58509651631ed3bc0b828dc7b507cd70cd30d15c9b35dd36b3616b32b125b227fbcc4d67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-js-routes (0.3.1)
4
+ rails-js-routes (0.3.2)
5
5
  rails (~> 4)
6
6
 
7
7
  GEM
@@ -12,7 +12,7 @@
12
12
  isDOMElement;
13
13
 
14
14
  /*
15
- * Helper function, returns true if o is a DOMElement
15
+ * Helper function, returns true if el is a DOMElement
16
16
  */
17
17
  function isDOMElement(el) {
18
18
  return (
@@ -143,9 +143,9 @@
143
143
  * Set config if link is passed as first argument
144
144
  */
145
145
  if (arguments.length == 1 && isDOMElement(arguments[0])) {
146
- this.config.action = arguments[0].attributes['data-action'];
147
- this.config.controller = arguments[0].attributes['data-controller'];
148
- this.config.namespace = arguments[0].attributes['data-namespace'];
146
+ this.config.action = arguments[0].getAttribute('data-action');
147
+ this.config.controller = arguments[0].getAttribute('data-controller');
148
+ this.config.namespace = arguments[0].getAttribute('data-namespace');
149
149
  } else if (arguments[0] === false) {
150
150
  /*
151
151
  * Break if false if passed as first argument
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module JS
3
3
  module Routes
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-js-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finn-Lenanrt Heemeyer