@lemonadejs/modal 2.4.2 → 2.4.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -475,6 +475,9 @@ if (!lemonade && typeof (require) === 'function') {
475
475
 
476
476
  return function (root, options, template) {
477
477
  if (typeof(root) === 'object') {
478
+ if (! template) {
479
+ template = '';
480
+ }
478
481
  // Keep the DOM elements
479
482
  let elements = [];
480
483
  while (root.firstChild) {
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  },
18
18
  "main": "dist/index.js",
19
19
  "types": "dist/index.d.ts",
20
- "version": "2.4.2"
20
+ "version": "2.4.3"
21
21
  }