publ-echo-test 0.0.280 → 0.0.281
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.
@@ -140,7 +140,6 @@ var GridItem = function (_a) {
|
|
140
140
|
var mutation = mutationsList_2[_i];
|
141
141
|
var isSizeChanged = mutation.attributeName === "data-min-width" ||
|
142
142
|
mutation.attributeName === "data-min-height";
|
143
|
-
console.log("mutation", mutation);
|
144
143
|
var keepWidth = true;
|
145
144
|
var hasPaddingChanged = true;
|
146
145
|
var insetTop = Number(mutation.target.dataset.insetTop);
|
@@ -242,8 +241,13 @@ var GridItem = function (_a) {
|
|
242
241
|
props.onFitToContent(i, w_2, h_2, newX, newY, { hasPaddingChanged: hasPaddingChanged });
|
243
242
|
}
|
244
243
|
};
|
244
|
+
var callbackLater = function (mutationsList) {
|
245
|
+
setTimeout(function () {
|
246
|
+
callback(mutationsList);
|
247
|
+
}, 0);
|
248
|
+
};
|
245
249
|
// MutationObserver 인스턴스 생성
|
246
|
-
var observer = new MutationObserver(
|
250
|
+
var observer = new MutationObserver(callbackLater);
|
247
251
|
// 관찰할 DOM 변이 설정
|
248
252
|
var config = { attributes: true, characterData: true };
|
249
253
|
// 대상 노드와 설정으로 관찰 시작
|