Skip to content

Commit 33b59d3

Browse files
committed
Changed deprecated getDOMNode calls to React.findDOMNode
1 parent ce162b5 commit 33b59d3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-checkbox-group",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"author": "Ziad Saab <[email protected]>",
55
"description": "Sensible checkbox groups manipulation for DOM.",
66
"main": "react-checkbox-group.js",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-checkbox-group",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"description": "Sensible checkbox groups manipulation for DOM.",
55
"main": "react-checkbox-group.js",
66
"scripts": {
@@ -27,7 +27,7 @@
2727
},
2828
"homepage": "https://github.com/ziad-saab/react-checkbox-group",
2929
"peerDependencies": {
30-
"react": ">= 0.11.1 < 1"
30+
"react": ">= 0.13.0 < 1"
3131
},
3232
"devDependencies": {
3333
"babel": "^5.6.7"

react-checkbox-group.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = React.createClass({
4848
},
4949

5050
getCheckboxes: function getCheckboxes() {
51-
return this.getDOMNode().querySelectorAll('input[type="checkbox"]');
51+
return React.findDOMNode(this).querySelectorAll('input[type="checkbox"]');
5252
},
5353

5454
setCheckedBoxes: function setCheckedBoxes() {

react-checkbox-group.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = React.createClass({
3838
},
3939

4040
getCheckboxes: function() {
41-
return this.getDOMNode().querySelectorAll('input[type="checkbox"]');
41+
return React.findDOMNode(this).querySelectorAll('input[type="checkbox"]');
4242
},
4343

4444
setCheckedBoxes: function() {

0 commit comments

Comments
 (0)