Skip to content
This repository has been 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
merged 2 commits into from
Jul 18, 2012

Conversation

tvoliter
Copy link
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
Contributor

reviewing

var self = this;
PopUpManager.addPopUp($popUp,
function () {
self.close();
Copy link
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
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
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
Contributor

Looks good

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants