From f1da605c3d1e3ebde2f8a54d39cd714cd1a9b389 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 2 Oct 2017 02:03:13 +0200 Subject: [PATCH] Cleanup --- scripts/APIObject.ts | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 scripts/APIObject.ts diff --git a/scripts/APIObject.ts b/scripts/APIObject.ts deleted file mode 100644 index 481cb4de..00000000 --- a/scripts/APIObject.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Save new data from an input field -// export function save(arn: AnimeNotifier, input: HTMLInputElement | HTMLTextAreaElement) { - // let apiObject: HTMLElement - // let parent = input as HTMLElement - - // while(parent = parent.parentElement) { - // if(parent.classList.contains("api-object")) { - // apiObject = parent - // break - // } - // } - - // if(!apiObject) { - // throw "API object not found" - // } - - // let request = apiObject["api-fetch"] - - // request.then(obj => { - // obj[input.id] = input.value - // console.log(obj) - // }) -// } - -// updateAPIObjects() { -// for(let element of findAll(".api-object")) { -// let apiObject = element - -// apiObject["api-fetch"] = fetch(element.dataset.api).then(response => response.json()) -// } -// } \ No newline at end of file