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;
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments