rytm-webflow 2.0.5 → 2.0.6
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.
- package/package.json +1 -1
- package/scripts/aswap/Controller.js +6 -0
- package/scripts/aswap/View.js +10 -0
package/package.json
CHANGED
|
@@ -99,6 +99,9 @@ class Controller {
|
|
|
99
99
|
if (container) {
|
|
100
100
|
container.classList.remove("as-hide")
|
|
101
101
|
}
|
|
102
|
+
if (this.view) {
|
|
103
|
+
this.view.hidden(container);
|
|
104
|
+
}
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
/**
|
|
@@ -144,6 +147,9 @@ class Controller {
|
|
|
144
147
|
if (container) {
|
|
145
148
|
container.classList.remove("as-show")
|
|
146
149
|
}
|
|
150
|
+
if (this.view) {
|
|
151
|
+
this.view.shown(container);
|
|
152
|
+
}
|
|
147
153
|
}
|
|
148
154
|
|
|
149
155
|
|
package/scripts/aswap/View.js
CHANGED
|
@@ -19,6 +19,11 @@ class View {
|
|
|
19
19
|
this.active = false;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
+
* view is hidden
|
|
23
|
+
**/
|
|
24
|
+
hidden(container) {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
22
27
|
* prepare (before show)
|
|
23
28
|
**/
|
|
24
29
|
prepare(container) {
|
|
@@ -29,6 +34,11 @@ class View {
|
|
|
29
34
|
show(container) {
|
|
30
35
|
this.active = true;
|
|
31
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* view is shown
|
|
39
|
+
**/
|
|
40
|
+
shown(container) {
|
|
41
|
+
}
|
|
32
42
|
/**
|
|
33
43
|
* images loading start
|
|
34
44
|
* fired only if ControllerImgLoad is used
|