beyond-rails 0.0.204 → 0.0.205

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
  SHA256:
3
- metadata.gz: fa60c67c216eccde72ced6069a3c049eb676961c057094a376b2085129514877
4
- data.tar.gz: 1729e12c2cbd9b463b949ac3a11889feee14b029efe36035db53545c8c4dce9b
3
+ metadata.gz: f84184cdf5a61c85e88fe53777de533a82fb8fb12d4c692bab16030947fa10ce
4
+ data.tar.gz: b4ca0e7e8f38d2ad7cc7397ec53a8e762dd5efbebd9083c8e9ab05b88a3692fc
5
5
  SHA512:
6
- metadata.gz: 23eb9462146fb4c46fe9500ff82dd8748da742922935641df7d83d3ac9e3a8ca4acc1550952aeb46139ea21c3aac760427c80f0f3c1b3b9cf434331713865b20
7
- data.tar.gz: d59fb4b482bfe3045005cec6126279b2aa96437ebc9a69c3297dd3d3a1aae7d388ec166b8db26052921b9cb41bf96cb76e2b589adeaf3c428278290b88109517
6
+ metadata.gz: 347a98b761bb5ae247cedb09105381edade5beac81ae3845b7cef02570aaf3034871a37877248e5cf276870b10c8d362022967a10c90509c41f382fc0e3a4f6f
7
+ data.tar.gz: f7563a13190a39ddd6a63dafceef653096eef974900d50ba832a08834126f724802fe4206dd93aa61c874a007d45a2251905b0e786438b519e1f75ff95c5fb62
@@ -6,10 +6,6 @@ export default function supportDom(target) {
6
6
  return class extends target {
7
7
 
8
8
  init() {
9
- if (this.beyondBound) {
10
- return
11
- }
12
- this.markBound()
13
9
  this._listeners = []
14
10
  this._externalListeners = []
15
11
  if (isFunction(super.init)) {
@@ -18,25 +14,6 @@ export default function supportDom(target) {
18
14
  createdComponents.push(this)
19
15
  }
20
16
 
21
- get beyondBound() {
22
- const { dom } = this
23
- return dom && (dom.dataset.beyondBound === 'true')
24
- }
25
-
26
- markBound() {
27
- const { dom } = this
28
- if (dom) {
29
- dom.dataset.beyondBound = true
30
- }
31
- }
32
-
33
- markUnbind() {
34
- const { dom } = this
35
- if (dom) {
36
- delete dom.dataset.beyondBound
37
- }
38
- }
39
-
40
17
  on(name, func) {
41
18
  this._externalListeners.push({ name, func })
42
19
  }
@@ -61,7 +38,6 @@ export default function supportDom(target) {
61
38
  destroy() {
62
39
  this._externalListeners.length = 0
63
40
  this.removeEvents()
64
- this.markUnbind()
65
41
  if (isFunction(super.destroy)) {
66
42
  super.destroy()
67
43
  }
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.204
4
+ version: 0.0.205
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng