This feature eliminates a confusing difference between various parts of Leo's API. I fully approve this change.
The diffs for
c.executeScriptHelper
do not reveal a subtle detail. Happily, this detail will cause no problem.
The detail: c.executeScript and c.executeScriptHelper take a namespace kwarg. What happens if namespace (a dict) contains a "result" key? Happily, the answer is, nothing. The local d var (another dict) does not contain a "result" key, so the lines:
if namespace:
d.update(namespace)
will not affect the namespace kwarg. Therefore, the PR will not affect the exec statement in any way.
Note: I do not believe this analysis needs to be part of the new documentation ;-) You might mention it in the PR itself.
This demo works as advertised in the felix-fix-script-results branch. The whole-process button will loop indefinitely in devel, but that's not a real problem ;-)
Let's merge this PR soon.
Edward