- Support multi-level nested form by
nestedForm
option. - Remove
onBuildTemplate
callback. UseonBuildForm
instead. - Change
maxIndex
tomax
.max
means the number of forms. - Use latest form html as template. Don't use cached html at the time of initialization.
- Refactoring.
- Find adder element in container first.
- Add addTo option.
- Add a new form after the last form instead of the bottom of container.
- Fix jquery deprecated selector.
- Find nested form in container.
- Build template on demand.
- Remove selected attribute from option tag when added a nested form.
- Capitalize global class. Use
$.NestedForm instead of $ .nestedForm. - Destroy existing instance on initialization.
- Refactoring.
- Export class for convenience.
- Fix error raised if remover option is null.
- Refactoring.
- First release.