Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
rename to getLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Feb 4, 2019
1 parent d30ff13 commit f029aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/views/rooms/RoomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ module.exports = React.createClass({
componentDidMount: function() {
this.dispatcherRef = dis.register(this.onAction);
const cfg = {
layout: () => this._layout,
getLayout: () => this._layout,
};
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
this.resizer.setClassNames({
Expand Down
3 changes: 1 addition & 2 deletions src/resizer/distributors/roomsublist2.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ class Handle {
export class Distributor extends FixedDistributor {
constructor(item, cfg) {
super(item);
const layout = cfg.layout;
this._handle = layout().openHandle(item.id);
this._handle = cfg.getLayout().openHandle(item.id);
}

finish() {
Expand Down

0 comments on commit f029aad

Please sign in to comment.