Skip to content
Snippets Groups Projects
Commit fb13954e authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix jwilkes/purr-data#33:

vsl freezes after updating maximum-range in the dialog
parent e6c605f7
No related branches found
No related tags found
No related merge requests found
...@@ -413,11 +413,11 @@ function send_params(attrs, create_undo_point) { ...@@ -413,11 +413,11 @@ function send_params(attrs, create_undo_point) {
var height, width; var height, width;
var size = attrs["size"]; var size = attrs["size"];
if (!size) { if (size === undefined) {
size = attrs["selection-size"]; size = attrs["selection-size"];
} }
if (size) { if (size !== undefined) {
width = size; width = size;
height = size; height = size;
} else { } else {
...@@ -428,19 +428,19 @@ function send_params(attrs, create_undo_point) { ...@@ -428,19 +428,19 @@ function send_params(attrs, create_undo_point) {
var slot3 = attrs["minimum-range"]; var slot3 = attrs["minimum-range"];
var slot4 = attrs["maximum-range"]; var slot4 = attrs["maximum-range"];
if (!slot3) { if (slot3 === undefined) {
slot3 = attrs["flash-interrupt"]; slot3 = attrs["flash-interrupt"];
slot4 = attrs["flash-hold"]; slot4 = attrs["flash-hold"];
} }
if (!slot3) { if (slot3 === undefined) {
slot3 = attrs["visible-width"]; slot3 = attrs["visible-width"];
slot4 = attrs["visible-height"]; slot4 = attrs["visible-height"];
} }
if (!slot3) { // toggle if (slot3 === undefined) { // toggle
slot3 = attrs["nonzero-value"]; slot3 = attrs["nonzero-value"];
if (!slot3) { if (slot3 === undefined) {
slot3 = 0; slot3 = 0;
} }
slot4 = 0; slot4 = 0;
...@@ -462,10 +462,10 @@ function send_params(attrs, create_undo_point) { ...@@ -462,10 +462,10 @@ function send_params(attrs, create_undo_point) {
if (!init) { init = 0; } if (!init) { init = 0; }
var slot7 = attrs["log-height"]; var slot7 = attrs["log-height"];
if (!slot7) { if (slot7 === undefined) {
slot7 = attrs["number"]; slot7 = attrs["number"];
} }
if (!slot7) { if (slot7 === undefined) {
slot7 = 0; slot7 = 0;
} }
...@@ -473,7 +473,7 @@ function send_params(attrs, create_undo_point) { ...@@ -473,7 +473,7 @@ function send_params(attrs, create_undo_point) {
//if (font_style !== null) { font_style = 0; } //if (font_style !== null) { font_style = 0; }
var font_size = attrs["font-size"]; var font_size = attrs["font-size"];
if (!font_size) { font_size = 0; } if (font_size === undefined) { font_size = 0; }
// [vu] doesn't have a foreground color // [vu] doesn't have a foreground color
var foreground_color = attrs["foreground-color"] ? var foreground_color = attrs["foreground-color"] ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment