Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Update for React 0.13.x compatibility #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

avik-das
Copy link

Hi @guillaumervls,

I wanted to use react-ellipsis in a project I'm working on, and I found that the component wasn't compatible with React 0.13.x. Your code is extremely simple, so I went ahead and made some changes. It would be great if you could merge them in and publish a new version of the module!

Please let me know if you have any questions about this.

Thanks for creating this module!

Avik Das added 3 commits May 27, 2015 11:20
- The "transferPropsTo" method is removed (it was deprecated in 0.12.x).

- "componentDidMount" and "componentDidUpdate" no longer take the DOM
  element as a parameter. Instead, we need to use
  React.findDOMNode(this) to grab it ourselves.
The change to support React 0.13.x can be considered a breaking change,
so we wouldn't want any one using "0.x" to be automatically updated to
this version.
@avik-das
Copy link
Author

avik-das commented Jun 4, 2015

Hi @guillaumervls: Any chance of you being able to merge in the above changes? Thanks!

omarrayward and others added 2 commits June 13, 2015 23:06
    If we don't match a whitespace the while loop shortening the text may
    go into an infinite loop
Match either a characher or a whitespace.
Avik Das added 5 commits June 23, 2015 15:39
Mocha-based tests can be run using `require` and any CommonJS
functionality. Browserify will then compile all these tests into a
single file that can be included in the react-ellipsis.test.html test
harness.

The next step is to start writing actual tests.
Runs the tests whenever the pertinent files are changed.
@MikaFima
Copy link

👍

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.

3 participants