!selection.show => return null from getSelection
If we've called `clearSelection`, then calling `getSelection` shouldn't
return the old selection values. When calling `getSelection` before a
selection is made, `null` is returned. It seemed appropriate to do the
same if `selection.show` was falsy.
Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Showing
Please
register
or
sign in
to comment