Skip to content

Commit

Permalink
Merge branch 'baseline' of https://github.com/bahrus/be-reformable in…
Browse files Browse the repository at this point in the history
…to baseline
  • Loading branch information
bahrus committed Nov 16, 2024
1 parent b516965 commit 04f6f5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions be-reformable.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BeReformable extends BE {
* @param {BAP} self
*/
async updateAction(self){
const {enhancedElement, urlBuilder, baseURL} = self;
const {enhancedElement, urlBuilder, baseURL, headerFields} = self;
if(!enhancedElement.checkValidity()) return {};
const pathBuilder = [baseURL];
const {tokens} = urlBuilder;
Expand All @@ -120,9 +120,9 @@ class BeReformable extends BE {
}


enhancedElement.dispatchEvent(new BeFetchingEvent(url))
enhancedElement.dispatchEvent(new BeFetchingEvent(url));
return /** @type {PAP} */({
url

});
}

Expand Down Expand Up @@ -175,6 +175,16 @@ class BeReformable extends BE {
}


/**
*
* @param {BAP} self
*/
suggestFetch(self){
const {enhancedElement} = self;
const {action} = enhancedElement;
enhancedElement.dispatchEvent(new BeFetchingEvent(action));
}


#disconnect(){
if(this.#abortController !== undefined){
Expand Down
2 changes: 1 addition & 1 deletion ts-refs
Submodule ts-refs updated from 6442c4 to 999cb4

0 comments on commit 04f6f5f

Please sign in to comment.