@potch/html-bin 1.1.1 → 1.1.3
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/build/index.min.js +1 -1
- package/build/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +7 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -434,8 +434,11 @@ export const createBin = ({
|
|
|
434
434
|
};
|
|
435
435
|
|
|
436
436
|
// mount bin and start
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
const start = () => widthObserver.observe(binEl);
|
|
438
|
+
if (container) {
|
|
439
|
+
container.append(binEl);
|
|
440
|
+
start();
|
|
441
|
+
}
|
|
439
442
|
|
|
440
443
|
// destroy / teardown
|
|
441
444
|
const findEffects = (node) => {
|
|
@@ -454,8 +457,10 @@ export const createBin = ({
|
|
|
454
457
|
};
|
|
455
458
|
|
|
456
459
|
return {
|
|
460
|
+
el: binEl,
|
|
457
461
|
editors,
|
|
458
462
|
activeTab,
|
|
463
|
+
start,
|
|
459
464
|
teardown,
|
|
460
465
|
};
|
|
461
466
|
};
|