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 Feb 25, 2016
1 parent 8652a6a commit 68018dc
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 68018dc

Please sign in to comment.