Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bug fix in 'set style'
  • Loading branch information
graham-trott committed May 22, 2020
commit 8117d8e8566d3790bc17f8c539c136139fbe9bb2
21 changes: 10 additions & 11 deletions dist/easycoder-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/easycoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5349,8 +5349,8 @@ const EasyCoder_Browser = {
target = document.getElementById(targetId);
}
const styleValue = program.getValue(command.styleValue);
if (!symbol.value[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
if (!symbol.element[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
return 0;
}
switch (command.type) {
Expand Down
4 changes: 2 additions & 2 deletions js/easycoder/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2284,8 +2284,8 @@ const EasyCoder_Browser = {
target = document.getElementById(targetId);
}
const styleValue = program.getValue(command.styleValue);
if (!symbol.value[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
if (!symbol.element[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
return 0;
}
switch (command.type) {
Expand Down