File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ <h6 style='color:blue'>7 example SELECT (show multiples)</h6>
158
158
</ script >
159
159
160
160
<!-- CoCreateJS -->
161
- <!--<script src="https://server.cocreate.app/js/ CoCreate.min .js"></script>-->
161
+ <!--<script src="https://server.cocreate.app/CoCreateJS/dist/ CoCreate.js"></script>-->
162
162
163
163
<!-- CoCreateUI -->
164
164
Original file line number Diff line number Diff line change 4
4
* Released under the MIT license
5
5
* https://github.com/CoCreate-app/Conditional_Logic/blob/master/LICENSE
6
6
*/
7
+ import observer from '@cocreate/observer'
7
8
8
9
initShowHideEles ( ) ;
9
10
@@ -23,10 +24,10 @@ function initShowHideEles(container) {
23
24
elements = [ mainContainer ] ;
24
25
}
25
26
for ( let el of elements ) {
26
- if ( CoCreate . observer . getInitialized ( el , "conditional-logic" ) ) {
27
+ if ( observer . getInitialized ( el , "conditional-logic" ) ) {
27
28
return ;
28
29
}
29
- CoCreate . observer . setInitialized ( el , "conditional-logic" )
30
+ observer . setInitialized ( el , "conditional-logic" )
30
31
31
32
if ( el . tagName . toLowerCase ( ) == "option" )
32
33
el = el . closest ( 'select' ) ;
@@ -40,7 +41,7 @@ function initShowHideEles(container) {
40
41
}
41
42
// CoCreateInit.register('CoCreateConditionalLogic', window, window.initShowHideEles);
42
43
43
- CoCreate . observer . init ( {
44
+ observer . init ( {
44
45
name : 'CoCreateConditionalLogic' ,
45
46
observe : [ 'subtree' , 'childList' ] ,
46
47
include : '[data-show],[data-hide]' ,
You can’t perform that action at this time.
0 commit comments