unprint 0.7.1 → 0.7.2
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/package.json +1 -1
- package/src/app.js +2 -2
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -592,7 +592,7 @@ function initQueryFns(fns, context) {
|
|
|
592
592
|
}]));
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
function init(elementOrHtml, selector, options) {
|
|
595
|
+
function init(elementOrHtml, selector, options = {}) {
|
|
596
596
|
if (!elementOrHtml) {
|
|
597
597
|
return null;
|
|
598
598
|
}
|
|
@@ -633,7 +633,7 @@ function init(elementOrHtml, selector, options) {
|
|
|
633
633
|
return context;
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
function initAll(context, selector, options) {
|
|
636
|
+
function initAll(context, selector, options = {}) {
|
|
637
637
|
if (Array.isArray(context)) {
|
|
638
638
|
return context.map((element) => init(element, selector, options));
|
|
639
639
|
}
|