ValYouW / jqPropertyGrid

A small property grid in JS to view/edit POJOs
MIT License
57 stars 33 forks source link

Added callback #12

Closed Alex-developer closed 6 years ago

Alex-developer commented 8 years ago

Added callback event when any field in the grid is changed

ValYouW commented 8 years ago

Looks good. Won't it be "safer" to check:

if (typeof changedCallback === 'function')

Instead of

if (changedCallback !== undefined)
Alex-developer commented 8 years ago

Possibly. I always use the second method. I guess if people dont read the docs and pass a string then your method would be safer.

i'll change is when I get a second