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

Fix jQuery 1.8 deprecations #4026

Merged
merged 3 commits into from May 30, 2013
Merged

Fix jQuery 1.8 deprecations #4026

merged 3 commits into from May 30, 2013

Conversation

dangoor
Copy link
Contributor

@dangoor dangoor commented May 29, 2013

This is a fix for #4018. It corrects the deprecations listed there.

@ghost ghost assigned RaymondLim May 29, 2013
@@ -2832,11 +2832,11 @@
if(this._get_settings().checkbox.two_state) {
if(state) {
obj.removeClass("jstree-checked").addClass("jstree-unchecked");
if(rc) { obj.children(":checkbox").prop("checked", false); }
if(rc) { obj.children('[type="checkbox"]').prop("checked", false); }
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can you flip the quotes by using single quote inside? Our coding policy is to use double-quotes for all strings. Same goes to all other ":checkbox" replacements. Or you can even drop the inner quotes since it is optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh, OK. I'm used to using double quotes around attribute values and didn't realize you can leave quotes off of the selectors entirely.

@RaymondLim
Copy link
Contributor

Looks good. Merging.

RaymondLim added a commit that referenced this pull request May 30, 2013
@RaymondLim RaymondLim merged commit 48273e4 into master May 30, 2013
@RaymondLim RaymondLim deleted the dangoor/jquery-deprecations branch May 30, 2013 15:49
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