Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: rtl as initializer option #1491

Closed
wants to merge 2 commits into from

Conversation

koenpunt
Copy link
Collaborator

fixes #1485

@kenearley
Copy link

Looks good to me. Should we consider deprecating the classname?

:shipit:

@koenpunt
Copy link
Collaborator Author

I vote for deprecating, as setting an option with a class is irregular. But that could create problems for current users of the chosen-rtl class.. Probably should have thought of that when we'd moved away from the chzn-.. classes.

@kenearley
Copy link

We may have to leave both for a while and then remove the classname when we hit 2.0. We just need to update the docs to communicate this.

We should probably update date the RTL portion of the docs in this PR to show the option use instead.

@tjschuck
Copy link
Member

Per SemVer:

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

If we introduce the constructor option but leave the class, we'd be bumping to 1.1 on release. If we remove the class, we'd be bumping to 2.0. Mostly a note for @pfiller and @kenearley for package-and-release purposes.

@kenearley
Copy link

@koenpunt I can take a stab at updating the docs, unless you're already on it.

@koenpunt
Copy link
Collaborator Author

Be my guest :)

@kenearley
Copy link

I just noticed that the classname has precedence over the option. I think this should be reversed. Thoughts?

@koenpunt
Copy link
Collaborator Author

This is because of backwards compatibility (if I remember it correctly).

@kenearley
Copy link

I don't see how that's backward compatible. If someone is using the classname then it will be rtl. It should fall through to checking the classname if the js option is not set. I'll check to make sure that is the case.

@kenearley
Copy link

Ah. Now I see. If you, for some reason, added the option rtl: false and then added the class, the class will take precedence. I don't see this as a problem at all as I doubt anyone would need to do this.

@kenearley
Copy link

Closing this now that we have a branch in the main repo. #1510

@kenearley kenearley closed this Aug 26, 2013
@koenpunt koenpunt deleted the rtl-option branch May 24, 2014 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Future: RTL Chosen with chosen option
3 participants