Skip to content

Commit 3a1c650

Browse files
scottpageindysoftdceejay
authored andcommitted
Added a troubleshooting note to Property definitions (node-red#134)
* Added a troubleshooting note to Property definitions A gotcha, that caused me several hours of time, is forgetting to make each property of defaults an object. If it's not an object, bad things happen and you end up with this error "Cannot use 'in' operator to search for 'required' in jquery" in the console. * Updated to protect against future code changes Removed the note I had previously added, and changed the first line in Property definitions to read: The entries in the `defaults` object must be objects and can have the following attributes: The note I had previously added did not protect the document against future code changes.
1 parent ef1e035 commit 3a1c650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/creating-nodes/properties.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ property called `prefix` to the node:
4747

4848
### Property definitions
4949

50-
The entries in the `defaults` object can have the following attributes:
50+
The entries in the `defaults` object must be objects and can have the following attributes:
5151

5252
- `value` : (any type) the default value the property takes
5353
- `required` : (boolean) *optional* whether the property is required. If set to

0 commit comments

Comments
 (0)