Skip to content

Commit 98cfc9b

Browse files
committed
Fix spurious calls to receiveValue() in scripted span.
See #21
1 parent 54de00a commit 98cfc9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EmbAJAXScriptedSpan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class EmbAJAXScriptedSpan : public EmbAJAXElement {
8989
return EmbAJAXElement::value(which);
9090
}
9191
const char* valueProperty(uint8_t which = EmbAJAXBase::Value) const override {
92-
return "EmbAJAXValue";
92+
if (which == EmbAJAXBase::Value) return "EmbAJAXValue";
93+
return EmbAJAXElement::valueProperty(which);
9394
}
9495
/** Send the given value to the client side script. Note that if you call this very
9596
* often, the client will probably not see every value. It will only get to see

0 commit comments

Comments
 (0)