Skip to content

Commit a5c7531

Browse files
committed
isDataObject was requiring at least 1 key but that's not necessary for the forms
1 parent ba57d31 commit a5c7531

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/FormModalFromURL/FormModalFromURL.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export class FormModalFromURL extends FormFromURL{
2828

2929
//if options are undefined, set them
3030
options = typeof options === "undefined" ? {} : options;
31-
32-
//make sure options is an object (empty or not)
33-
type_checks.isDataObject(options, Object.keys(FormModalFromURLDefaults), false, false, true);
31+
if( typeof options !== "object" ) throw `${options} is not an object`;
3432

3533
//start by extending modal options so the individual defaults above aren't overwritten, just the ones you pass are
3634
options.modalOptions = {...FormModalFromURLDefaults.modalOptions, ...options.modalOptions};

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@htmlguyllc/jpack",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "Core Javascript Library of Everyday Objects, Events, and Utilities",
55
"keywords": [
66
"javascript",

0 commit comments

Comments
 (0)