debian-mirror-gitlab/app/assets/javascripts/dirty_submit/dirty_submit_collection.js

14 lines
287 B
JavaScript
Raw Normal View History

2018-12-13 13:39:08 +05:30
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;