Skip to content

Conversation

jzaefferer
Copy link
Member

@scottgonzalez can you check out my code comments here? Not intended to actually land anywhere, just to get a grip on the code. Also was the convenient thing to do on the plane.

This includes commits from #794 and targets that PR branch, so just the review commit shows up here.

Copy link
Member

Choose a reason for hiding this comment

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

attroperties... Probably not needed anymore since jQuery 1.6 understands the difference.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, since I saw the tooltip issue and fix, we can probably drop this. I'll test it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Dropping this causes tests to fail that expect an empty string as the default for the title option - without the typeof check here, the option ends up being reset to null instead. Arguably the right default value though.

@jzaefferer
Copy link
Member Author

Regarding oldInstances: With position:fixed, the total area of the overlay is now restricted to the window dimensions, instead of the document dimensions. That might reduce the memory footprint a lot already.

If not enough, we can look into just removing background-images in affected IE versions, like we removed the background for tooltip's in IE6 (f83f07d)

@mikesherov
Copy link
Member

@jzaefferer, I avoided rebasing here so you don't lose your place in history. Rebase at will if you'd like.

@mikesherov
Copy link
Member

I just rebased this and the dialog branch.

Copy link
Member

Choose a reason for hiding this comment

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

No tests for when focus shouldn't happen?

…fault null, as it should be. No back-compat, as the behaviour doesn't change.
… refactoring _setOption, no need for switch.
…d for the uiDialog closure. Use this.uiDialog and remove the variable.
… instead. Wasn't needed anymore (previous refactorings).
@jzaefferer
Copy link
Member Author

Addressed all of the above, and updated the dialog API buttons example to also use the array syntax: jquery/api.jqueryui.com@561c562

@jzaefferer jzaefferer merged commit a9d2e3f into dialog Nov 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants