beyond-rails 0.0.236 → 0.0.237

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/js/utils/dom.js +11 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d18db8c043fc4f94860e382889c2d130fc78d7d607643fe5454a7d0f5f9fc71c
4
- data.tar.gz: c2bc9f9b12837e0df45d321949278433516a4716c7a458d1ef46597de546bd34
3
+ metadata.gz: adbb95db12425b98f0284cfcc9cef65c0034a927658bf3e730478387ba25822e
4
+ data.tar.gz: b3037f00f20178cda7ac995bbc37d87483a79dc6d34f8b0574e149d40a485085
5
5
  SHA512:
6
- metadata.gz: 35c60a7cbc639d1df874dee90d9d55d90f1b91e7691aeb2e5a39dff63cda835a382df3bab86ae817415aad0198d3c6674b6753fea97d1a8f6f818317a95482df
7
- data.tar.gz: 8b040af8e540ced1356f09b8e8a5e35782ee989eb1aa029a25733bbe4a38ea1bb9b6592f194ab8477836d39e0c66bb1d0c3ab28190437d7ba636abd191bc6ce0
6
+ metadata.gz: 498139b642aee1c76d4761b64a0ac14a02b60117be1a54daf66a00cd207de1e6df1e1aa3a4eda946e5c7fe29cba4d2eea07fb0a41301319ae4adad60828c2256
7
+ data.tar.gz: a39287a38305fa8b558e4b833a4935a7c4ae55a9a305aecb6167871fe892f52828a750dd1130d9b2e743b96ce56bdcbaddc4deab7b8e16e1dc4107784e5bfd6c
@@ -5,7 +5,17 @@ const unloadRows = []
5
5
  const onPage = row => {
6
6
  const { controller, action } = row
7
7
  const { dataset } = document.body
8
- return (dataset.controller === controller) && (dataset.action === action)
8
+
9
+ let controllerMatched = (dataset.controller === controller)
10
+ let actionMatched = (dataset.action === action)
11
+
12
+ if (controller === '*') {
13
+ controllerMatched = true
14
+ }
15
+ if (action === '*') {
16
+ actionMatched = true
17
+ }
18
+ return controllerMatched && actionMatched
9
19
  }
10
20
 
11
21
  export const $ = (selector, dom = document) => dom.querySelector(selector)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.236
4
+ version: 0.0.237
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-04 00:00:00.000000000 Z
12
+ date: 2020-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc