Skip to content

Commit

Permalink
workig together with react 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
diki committed Oct 19, 2015
1 parent 0c60f0e commit 6d61d5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var React = require('react');
var ReactDOM = require('react-dom');
var loadScript = require('./loadScript');
var ZeroClipboard, client;

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

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

// remove our event listener
Expand Down

0 comments on commit 6d61d5a

Please sign in to comment.