@@ -20,7 +20,7 @@ function initSortableSettings(coCreateMapAutocomplete) {
2020 } ) ;
2121 } ) ;
2222 var config = { attribute :false , childList : true , characterData : false , subtree : true } ;
23-
23+
2424 observer . observe ( document . body , config ) ;
2525}
2626
@@ -33,7 +33,7 @@ function initSortableSettings(coCreateMapAutocomplete) {
3333// modules: {},
3434// newModules: {},
3535// observer: null,
36-
36+
3737// /**
3838// * key: module name
3939// * instance: module instance (ex, CoCreateInput or window)
@@ -48,7 +48,7 @@ function initSortableSettings(coCreateMapAutocomplete) {
4848// instance: instance
4949// }
5050// },
51-
51+
5252// init: function() {
5353// if (this.observer) {
5454// return ;
@@ -61,10 +61,10 @@ function initSortableSettings(coCreateMapAutocomplete) {
6161// const config = { attribute:false, childList: true, characterData: false, subtree: true };
6262// this.observer.observe(document.body, config);
6363// } catch (error) {
64-
64+
6565// }
6666// },
67-
67+
6868// registerModules : function (key, instance, initFunc) {
6969// if (this.newModules[key]) {
7070// return;
@@ -74,14 +74,14 @@ function initSortableSettings(coCreateMapAutocomplete) {
7474// instance: instance
7575// }
7676// },
77-
77+
7878// runInit: function(container) {
7979// console.log(this.newModules, container)
8080// for (let [key, value] of Object.entries(this.newModules)) {
8181// value['func'].call(value['instance'], container);
8282// }
8383// },
84-
84+
8585// mutationLogic: function(mutations) {
8686// const self = this;
8787// console.log('mutations event.....');
@@ -91,11 +91,11 @@ function initSortableSettings(coCreateMapAutocomplete) {
9191// if (!self.modules) {
9292// return;
9393// }
94-
95- // if (!addedNode.querySelectorAll || !addedNode.getAttribute) {
94+
95+ // if (!addedNode.querySelectorAll || !addedNode.getAttribute) {
9696// return;
9797// }
98-
98+
9999// for (let [key, value] of Object.entries(self.modules)) {
100100// value['func'].call(value['instance'], addedNode);
101101// // let items = addedNode.querySelectorAll(value['selector']);
@@ -121,7 +121,7 @@ function initSortableSettings(coCreateMapAutocomplete) {
121121// try{
122122// observer = new MutationObserver(function(mutations){
123123// mutations.forEach(function(mutation){
124- // if (mutation.type == "childList"
124+ // if (mutation.type == "childList"
125125// && mutation.addedNodes.length == 1) {
126126// var addedNode = mutation.addedNodes.item(0);
127127// console.log(addedNode)
@@ -131,7 +131,7 @@ function initSortableSettings(coCreateMapAutocomplete) {
131131// list = addedNode.querySelectorAll(selector);
132132// }catch (error) {
133133// console.log(error);
134- // }
134+ // }
135135// list.forEach(elem=>{
136136// console.log("Init Element with Observer ",elem)
137137// functionInit(elem);
@@ -146,5 +146,5 @@ function initSortableSettings(coCreateMapAutocomplete) {
146146// }
147147// return observer;
148148// }
149-
149+
150150// }
0 commit comments