Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

fixes issues #1270 #1271 #1272, ESC key handling with popups#1276

Merged
redmunds merged 2 commits into
masterfrom
tvoliter/popupESCfix
Jul 18, 2012
Merged

fixes issues #1270 #1271 #1272, ESC key handling with popups#1276
redmunds merged 2 commits into
masterfrom
tvoliter/popupESCfix

Conversation

@tvoliter
Copy link
Copy Markdown
Contributor

fixes issues #1270 #1271 #1272

  • fixed ESC key not working to dismiss dialogs by fixing bug where popup was removed from list when it was persistant
  • simplified addPopUp() API by removing different function call relating to popup persistance and instead having an "autoAddRemove" parameter
  • prefixed data keys with "PopUpManager" since PopUpManager is decorating elements it doesn't own
  • changed closing call for menus and context menus to call this.close() instead of closeAll()

- fixed ESC key not working to dismiss dialogs by fixing bug where popup was removed from list when it was persistant
- simplified addPopUp() API by removing different function call relating to popup persistance and instead having an "autoAddRemove" parameter
- prefixed data keys with "PopUpManager" since PopUpManager is decorating elements it doesn't own
- changed closing call for menus and context menus to call this.close() instead of closeAll()
@ghost ghost assigned redmunds Jul 18, 2012
@redmunds
Copy link
Copy Markdown
Contributor

reviewing

Comment thread src/command/Menus.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REMINDER: need to update new context menu unit test I added in pull request #1273 to uncomment line that checks for contextMenuClose event.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Randy, I've pushed my changes so you can update test in the pull request?

@redmunds
Copy link
Copy Markdown
Contributor

done with initial review

- removed _removePopup() function since complexity of having this helper function isn't worth the savings of reusing the "index" var. I don't except their to be many visible popups at one time, so computing the index more than once isn't costly
@redmunds
Copy link
Copy Markdown
Contributor

Looks good

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.

3 participants