MCPcopy Create free account
hub / github.com/adearriba/ShopifyCheckoutJS / constructor

Method constructor

src/Components/TextField.js:5–14  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

3
4export class TextField extends Field{
5 constructor(args){
6 super(args);
7 Object.setPrototypeOf(this, TextField.prototype);
8
9 if (typeof args == 'object'){
10 this.addField(args);
11 }
12
13 this.created();
14 }
15
16 addField(args){
17 let input = document.createElement('input');

Callers

nothing calls this directly

Calls 2

addFieldMethod · 0.95
createdMethod · 0.80

Tested by

no test coverage detected