jsdoc
This commit is contained in:
@@ -52,7 +52,7 @@ export function append(object,name,value){
|
||||
if(object[name] instanceof Array){
|
||||
object[name].push(value)
|
||||
}else{
|
||||
object[name]=[formDataDeep[name],value]
|
||||
object[name]=[object[name],value]
|
||||
}
|
||||
}else{
|
||||
object[name]=value
|
||||
@@ -107,6 +107,7 @@ export class FormDataDeep extends FormData {
|
||||
* @param {Boolean} primitives whether to convert string values to primitives. Defaults `false`.
|
||||
*/
|
||||
constructor(form,primitives=false){
|
||||
super()
|
||||
if(form instanceof HTMLFormElement){
|
||||
Object.assign(this,getFormDataDeep(form,primitives))
|
||||
}else{
|
||||
@@ -191,7 +192,9 @@ export class FormDataDeep extends FormData {
|
||||
new FormDataDeep(this[name]).apply(form)
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
|
||||
export default FormDataDeep</code></pre>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
@@ -201,13 +204,13 @@ export class FormDataDeep extends FormData {
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-CSSRandom.html">CSSRandom</a></li><li><a href="module-FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.html">FormDataDeep</a></li></ul><h3>Classes</h3><ul><li><a href="module-FileReaderAsync.FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.FormDataDeep.html">FormDataDeep</a></li></ul>
|
||||
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-CSSRandom.html">CSSRandom</a></li><li><a href="module-FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.html">FormDataDeep</a></li><li><a href="module-fontScale.html">fontScale</a></li></ul><h3>Classes</h3><ul><li><a href="module-FileReaderAsync.FileReaderAsync.html">FileReaderAsync</a></li><li><a href="module-FormDataDeep.FormDataDeep.html">FormDataDeep</a></li></ul>
|
||||
</nav>
|
||||
|
||||
<br class="clear">
|
||||
|
||||
<footer>
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Sat Dec 03 2022 16:41:37 GMT+0000 (Coordinated Universal Time)
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Wed Dec 07 2022 13:47:25 GMT+0000 (Coordinated Universal Time)
|
||||
</footer>
|
||||
|
||||
<script> prettyPrint(); </script>
|
||||
|
||||
Reference in New Issue
Block a user