Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Playground fixes #75

Merged
merged 3 commits into from
Oct 27, 2015
Merged

Playground fixes #75

merged 3 commits into from
Oct 27, 2015

Conversation

gnandretta
Copy link
Contributor

  • After clicking the "Open Me!" button, the lock was being closed when any key was pressed.
  • Clean event handler for close button click. The close button is never displayed when the Lock is rendered in a container, so there's no need to check that.
  • Add comments for event handlers that render the Lock in the container after it has been closed.

A new Lock needs to be rendered in the #container after it has been
closed with ESC.

We ensure ESC has actually been pressed (keyCode 23) and that there is
a close button in the DOM (otherwise the Lock can't be closed with
ESC).
There's no need to check if the Lock is rendered in a container,
because it can't be closed in such situation.
cabralmartin added a commit that referenced this pull request Oct 27, 2015
@cabralmartin cabralmartin merged commit 8b26ea9 into master Oct 27, 2015
@cabralmartin cabralmartin deleted the playground-fixes branch October 27, 2015 22:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants