14 lines
287 B
JavaScript
14 lines
287 B
JavaScript
|
import DirtySubmitForm from './dirty_submit_form';
|
||
|
|
||
|
class DirtySubmitCollection {
|
||
|
constructor(forms) {
|
||
|
this.forms = forms;
|
||
|
|
||
|
this.dirtySubmits = [];
|
||
|
|
||
|
this.forms.forEach(form => this.dirtySubmits.push(new DirtySubmitForm(form)));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default DirtySubmitCollection;
|