Skip to content

Commit

Permalink
Fix findDOMNode issue according to react v0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
zillding committed Oct 14, 2015
1 parent 305c52a commit d177b45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/GoogleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _reactDom = require("react-dom");

var _creatorsGoogleMapHolder = require("./creators/GoogleMapHolder");

var _creatorsGoogleMapHolder2 = _interopRequireDefault(_creatorsGoogleMapHolder);
Expand Down Expand Up @@ -127,7 +129,7 @@ var GoogleMap = (function (_Component) {
}, {
key: "componentDidMount",
value: function componentDidMount() {
var domEl = (0, _react.findDOMNode)(this);
var domEl = (0, _reactDom.findDOMNode)(this);
var _props = this.props;
var containerTagName = _props.containerTagName;
var containerProps = _props.containerProps;
Expand Down
7 changes: 5 additions & 2 deletions src/GoogleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import {
default as React,
PropTypes,
Component,
findDOMNode,
} from "react";

import {
findDOMNode,
} from "react-dom";

import {
default as GoogleMapHolder,
mapDefaultPropTypes,
Expand Down Expand Up @@ -52,7 +55,7 @@ export default class GoogleMap extends Component {
//
// Public APIs - Use this carefully
// See discussion in https://github.com/tomchentw/react-google-maps/issues/62
//
//
// https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
//
// [].map.call($0.querySelectorAll("tr>td>code"), function(it){ return it.textContent; }).filter(function(it){ return !it.match(/^get/) && !it.match(/^set/) && !it.match(/Map$/); })
Expand Down

0 comments on commit d177b45

Please sign in to comment.