Skip to content

Commit

Permalink
do not use react-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
elifceren committed Aug 24, 2015
1 parent 998e6ed commit 1c1c5c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var React = require('react');
var ReactDOM = require('react-dom');
var loadScript = require('./loadScript');
var ZeroClipboard, client;

Expand Down Expand Up @@ -143,7 +142,7 @@ var ReactZeroClipboard = React.createClass({
this.eventRemovers = [];
this.ready(function(){
if (!this.isMounted()) return;
var el = ReactDOM.findDOMNode(this);
var el = React.findDOMNode(this);
client.clip(el);

// translate our props to ZeroClipboard events, and add them to
Expand All @@ -163,7 +162,7 @@ var ReactZeroClipboard = React.createClass({
},
componentWillUnmount: function(){
if (client) {
client.unclip(ReactDOM.findDOMNode(this));
client.unclip(React.findDOMNode(this));
}

// remove our event listener
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"browserify": "^9.0.8",
"envify": "^3.4.0",
"react": "^0.14.0-beta3",
"react-dom": "^0.14.0-beta3",
"reactify": "^1.1.0"
},
"browserify": {
Expand Down

0 comments on commit 1c1c5c4

Please sign in to comment.