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 +4 -4
- data/src/js/decorators/supportDom.js +0 -24
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f84184cdf5a61c85e88fe53777de533a82fb8fb12d4c692bab16030947fa10ce
|
4
|
+
data.tar.gz: b4ca0e7e8f38d2ad7cc7397ec53a8e762dd5efbebd9083c8e9ab05b88a3692fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|