Currently some special variables like event and location are injected (if there's no conflict) into an action's Javascript environment. Should inject these bindings earlier so that a code condition can use these bindings.
Fix should be easy. See EvalRuleCondition.Do() in core/events.go. Move the binding code up a little.
Currently some special variables like
event
andlocation
are injected (if there's no conflict) into an action's Javascript environment. Should inject these bindings earlier so that acode
condition can use these bindings.Fix should be easy. See
EvalRuleCondition.Do()
incore/events.go
. Move the binding code up a little.