Skip to content

Commit

Permalink
Fixes: set recordinstance, addClosureToBreakpointWidth, setStaticProp…
Browse files Browse the repository at this point in the history
…erty fastn_dom.PropertyKind.BreakpointWidth
  • Loading branch information
Arpita-Jaiswal committed Nov 3, 2023
1 parent 33be979 commit 1b31aca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fastn-js/js/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ class Node2 {
if (fastn_utils.isNull(staticValue)) {
return;
}
ftd.breakpoint_width.set("mobile", fastn_utils.getStaticValue(staticValue));
ftd.breakpoint_width.set(fastn_utils.getStaticValue(staticValue));
} else if (kind === fastn_dom.PropertyKind.Css) {
let css_list = staticValue.map(obj => fastn_utils.getStaticValue(obj.item));
css_list.forEach((css) => {
Expand Down
3 changes: 1 addition & 2 deletions fastn-js/js/fastn.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ class RecordInstance {
}

this.#fields = fields;
}
if (this.#fields[key] === undefined) {
}else if (this.#fields[key] === undefined) {
this.#fields[key] = fastn.mutable(null);
this.#fields[key].setWithoutUpdate(value);
} else {
Expand Down
2 changes: 1 addition & 1 deletion fastn-js/js/virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Document2 {
fastn_virtual.document = new Document2();

function addClosureToBreakpointWidth() {
let closure = new Closure(function() {
let closure = fastn.closureWithoutExecute(function() {
let current = ftd.get_device();
let lastDevice = ftd.device.get();
if (current === lastDevice) {
Expand Down

0 comments on commit 1b31aca

Please sign in to comment.