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

Commit

Permalink
use parameter props instead of property props
Browse files Browse the repository at this point in the history
  • Loading branch information
RusAlex committed Mar 6, 2016
1 parent 46332ae commit 4999bc1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build/reactable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,11 @@ window.ReactDOM["default"] = window.ReactDOM;
}
}, {
key: 'initializeSorts',
value: function initializeSorts() {
value: function initializeSorts(props) {
this._sortable = {};
// Transform sortable properties into a more friendly list
for (var i in this.props.sortable) {
var column = this.props.sortable[i];
for (var i in props.sortable) {
var column = props.sortable[i];
var columnName = undefined,
sortFunction = undefined;

Expand Down
6 changes: 3 additions & 3 deletions lib/reactable/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ var Table = (function (_React$Component) {
}
}, {
key: 'initializeSorts',
value: function initializeSorts() {
value: function initializeSorts(props) {
this._sortable = {};
// Transform sortable properties into a more friendly list
for (var i in this.props.sortable) {
var column = this.props.sortable[i];
for (var i in props.sortable) {
var column = props.sortable[i];
var columnName = undefined,
sortFunction = undefined;

Expand Down
6 changes: 3 additions & 3 deletions src/reactable/table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ export class Table extends React.Component {
this.initializeSorts(props);
}

initializeSorts() {
initializeSorts(props) {
this._sortable = {};
// Transform sortable properties into a more friendly list
for (let i in this.props.sortable) {
let column = this.props.sortable[i];
for (let i in props.sortable) {
let column = props.sortable[i];
let columnName, sortFunction;

if (column instanceof Object) {
Expand Down

0 comments on commit 4999bc1

Please sign in to comment.