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

Commit 68018dc

Browse files
committed
use parameter props instead of property props
1 parent 8652a6a commit 68018dc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

build/reactable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,11 +1128,11 @@ window.ReactDOM["default"] = window.ReactDOM;
11281128
}
11291129
}, {
11301130
key: 'initializeSorts',
1131-
value: function initializeSorts() {
1131+
value: function initializeSorts(props) {
11321132
this._sortable = {};
11331133
// Transform sortable properties into a more friendly list
1134-
for (var i in this.props.sortable) {
1135-
var column = this.props.sortable[i];
1134+
for (var i in props.sortable) {
1135+
var column = props.sortable[i];
11361136
var columnName = undefined,
11371137
sortFunction = undefined;
11381138

lib/reactable/table.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ var Table = (function (_React$Component) {
166166
}
167167
}, {
168168
key: 'initializeSorts',
169-
value: function initializeSorts() {
169+
value: function initializeSorts(props) {
170170
this._sortable = {};
171171
// Transform sortable properties into a more friendly list
172-
for (var i in this.props.sortable) {
173-
var column = this.props.sortable[i];
172+
for (var i in props.sortable) {
173+
var column = props.sortable[i];
174174
var columnName = undefined,
175175
sortFunction = undefined;
176176

src/reactable/table.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ export class Table extends React.Component {
129129
this.initializeSorts(props);
130130
}
131131

132-
initializeSorts() {
132+
initializeSorts(props) {
133133
this._sortable = {};
134134
// Transform sortable properties into a more friendly list
135-
for (let i in this.props.sortable) {
136-
let column = this.props.sortable[i];
135+
for (let i in props.sortable) {
136+
let column = props.sortable[i];
137137
let columnName, sortFunction;
138138

139139
if (column instanceof Object) {

0 commit comments

Comments
 (0)