From 68018dc0bf4e2c6c2088664ad3607ad75e4e0dfe Mon Sep 17 00:00:00 2001 From: Alexander Pletnev Date: Thu, 25 Feb 2016 17:44:58 +0300 Subject: [PATCH] use parameter props instead of property props --- build/reactable.js | 6 +++--- lib/reactable/table.js | 6 +++--- src/reactable/table.jsx | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/reactable.js b/build/reactable.js index 101bc204..af84bb57 100644 --- a/build/reactable.js +++ b/build/reactable.js @@ -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; diff --git a/lib/reactable/table.js b/lib/reactable/table.js index bcec32e2..7d2887d9 100644 --- a/lib/reactable/table.js +++ b/lib/reactable/table.js @@ -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; diff --git a/src/reactable/table.jsx b/src/reactable/table.jsx index 58831116..f6649def 100644 --- a/src/reactable/table.jsx +++ b/src/reactable/table.jsx @@ -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) {