-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Collapsable => collapsible #425
Comments
|
If we provide an alias than usage of the Alias should output a warning to the console so we can plan to deprecate it later. |
|
Adding that to 1.0.0 wiki |
|
I have already refactored CollapsableMixin => CollapsibleMixin.
Deal with
And finally:
|
|
Rename property This is not trivial task and I move it into standalone issue #589,
|
DeprecationsComponents
|
CollapsableMixin => CollaplibleMixin CollapsableNav => CollaplibleNav More here react-bootstrap#425 Exactly this commit: Add CollapsibleMixin to src/index.js
CollapsableMixin => CollaplibleMixin CollapsableNav => CollaplibleNav More here react-bootstrap#425 Exactly this commit: Add CollapsibleMixin to src/index.js
CollapsableMixin => CollaplibleMixin CollapsableNav => CollaplibleNav More here react-bootstrap#425 Exactly this commit: Add CollapsibleMixin to src/index.js Refactor deprecationWarning() for general use.
|
What is left: Rename property
|
|
This function function collapsable(props, propName, componentName) {
if (props[propName] !== undefined) {
deprecationWarning(
`${propName} in ${componentName}`,
'collapsible',
'https://github.com/react-bootstrap/react-bootstrap/issues/425'
);
}
return React.PropTypes.bool.call(null, props, propName, componentName);
}is needed to use in I don't want to create another file in I want to put it into export default function deprecationWarning(...)
...
export function collapsable(props, propName, componentName){...}and then use it in those three components as: import deprecationWarning, {collapsable} from './utils/deprecationWarning';or just import {collapsable} from './utils/deprecationWarning';when Any thoughts ? Suggestions ? |
|
Another question: It was introduced by this patch 855e5b29cb, but it doesn't used anywhere. This is a property of locally created Does this property need deprecation warning or we can just remove it ? |
|
I think that one can just be changed to |
Discussion is here react-bootstrap#425. Components are involved: - Nav - Panel - CollapsibleNav Current property type checking for `collapsable` in `PanelGroup` is needless and has been removed.
Discussion is here react-bootstrap#425. Components are involved: - Nav - Panel - CollapsibleNav Current property type checking for `collapsable` in `PanelGroup` is needless and has been removed.
Discussion is here react-bootstrap#425. Components are involved: - Nav - Panel - CollapsibleNav Current property type checking for `collapsable` in `PanelGroup` is needless and has been removed.
Discussion is here react-bootstrap#425. Components are involved: - Nav - Panel - CollapsibleNav Current property type checking for `collapsable` in `PanelGroup` is needless and has been removed. Tests for deprecated `collapsable` property for all three components has been placed into one file `CollapsableNavSpec.js`
|
I know doesn't matter at this state but I am not agree with this change. We use a lot of -able subfix for non english words and we are fine with it (e.g https://github.com/plataformatec/devise ). It's even a standards sometime create whatever word use this when you need to say that word is an action. I don't thing this was a valuable time and that's what I really care about it. For me, this is weird now. 👎 |
|
In that case it should be CollapseAble. Javascript doesn't have cheap type On Sat, Jun 27, 2015, 7:32 AM Yordis Prieto notifications@github.com
Wout. |
|
I believe that @yordis If you have anything to bring in, move ahead and make a PR 😉 I'm locking this topic to prevent a 'flame'. |
|
we all appreciate both sides to this issue and understand the cost of changing the names of things in terms of maintenance and time. in the future this mixin will most likely be deprecated and then removed so the whole thing is moot. rather then let this issue get into the fraught area of discussing the meaning of words and the subjectivity of language we are just going to lock this and call the discussion finished, having heard both sides |
the correct spelling is "collapsible". Perhaps change all occurrences in the code and provide aliases where appropriate?
The text was updated successfully, but these errors were encountered: