This repository was archived by the owner on Jan 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1128,11 +1128,11 @@ window.ReactDOM["default"] = window.ReactDOM;
1128
1128
}
1129
1129
} , {
1130
1130
key : 'initializeSorts' ,
1131
- value : function initializeSorts ( ) {
1131
+ value : function initializeSorts ( props ) {
1132
1132
this . _sortable = { } ;
1133
1133
// 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 ] ;
1136
1136
var columnName = undefined ,
1137
1137
sortFunction = undefined ;
1138
1138
Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ var Table = (function (_React$Component) {
166
166
}
167
167
} , {
168
168
key : 'initializeSorts' ,
169
- value : function initializeSorts ( ) {
169
+ value : function initializeSorts ( props ) {
170
170
this . _sortable = { } ;
171
171
// 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 ] ;
174
174
var columnName = undefined ,
175
175
sortFunction = undefined ;
176
176
Original file line number Diff line number Diff line change @@ -129,11 +129,11 @@ export class Table extends React.Component {
129
129
this . initializeSorts ( props ) ;
130
130
}
131
131
132
- initializeSorts ( ) {
132
+ initializeSorts ( props ) {
133
133
this . _sortable = { } ;
134
134
// 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 ] ;
137
137
let columnName , sortFunction ;
138
138
139
139
if ( column instanceof Object ) {
You can’t perform that action at this time.
0 commit comments