MCPcopy Index your code
hub / github.com/ampproject/amphtml / constructor

Method constructor

src/form-data-wrapper.js:182–193  ·  view source on GitHub ↗

@override

(opt_form)

Source from the content-addressed store, hash-verified

180class Ios11NativeFormDataWrapper extends NativeFormDataWrapper {
181 /** @override */
182 constructor(opt_form) {
183 super(opt_form);
184
185 if (opt_form) {
186 iterateCursor(opt_form.elements, (input) => {
187 if (input.type == 'file' && input.files.length == 0) {
188 this.formData_.delete(input.name);
189 this.formData_.append(input.name, new Blob([]), '');
190 }
191 });
192 }
193 }
194
195 /**
196 * @param {string} name

Callers

nothing calls this directly

Calls 3

iterateCursorFunction · 0.90
deleteMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected