Skip to content

Dialog: Safe activeElement access.#1096

Closed
tjvantoll wants to merge 2 commits intojquery:masterfrom
tjvantoll:dialog-active-element
Closed

Dialog: Safe activeElement access.#1096
tjvantoll wants to merge 2 commits intojquery:masterfrom
tjvantoll:dialog-active-element

Conversation

@tjvantoll
Copy link
Member

Fixed #9420 - Dialog: Close causes blur of window in IE9
Fixed #8443 - Dialog: "unspecified error" when using ie9 and iframe

Man does this feel dirty.

Fixed #9420 - Dialog: Close causes blur of window in IE9
Fixed #8443 - Dialog: "unspecified error" when using ie9 and iframe
@tjvantoll
Copy link
Member Author

I hate the idea of putting more things in core but this is painful and this isn't the last time we're going to run into this.

Copy link
Member

Choose a reason for hiding this comment

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

You reference document.activeElement three times, so might as well assign that here as activeElement and use that.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, let's just create activeElement and not document.

@scottgonzalez
Copy link
Member

Other than @jzaefferer's comment, there should be a blank line above each comment. Looks good otherwise.

@tjvantoll
Copy link
Member Author

Landed in 2dfe85d.

@tjvantoll tjvantoll closed this Oct 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants