The error checking uses the construction x == nil and valid_when_nil or x. But that fails when valid_when_nil evaluates to false. Using the simpler construction x or valid_when_nil with care around booleans would make it easier to see what validation is being done.
Simplifying fixes these args that were nil, but should be boolean.
The error checking uses the construction
x == nil and valid_when_nil or x
. But that fails whenvalid_when_nil
evaluates to false. Using the simpler constructionx or valid_when_nil
with care around booleans would make it easier to see what validation is being done.Simplifying fixes these args that were nil, but should be boolean.
Options.ReadOnly Options.MultiLine Options.NoDrag Options.UseSlider