You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
rename to getLayout
This commit is contained in:
@@ -183,7 +183,7 @@ module.exports = React.createClass({
|
|||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
this.dispatcherRef = dis.register(this.onAction);
|
this.dispatcherRef = dis.register(this.onAction);
|
||||||
const cfg = {
|
const cfg = {
|
||||||
layout: () => this._layout,
|
getLayout: () => this._layout,
|
||||||
};
|
};
|
||||||
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
|
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
|
||||||
this.resizer.setClassNames({
|
this.resizer.setClassNames({
|
||||||
|
|||||||
@@ -319,8 +319,7 @@ class Handle {
|
|||||||
export class Distributor extends FixedDistributor {
|
export class Distributor extends FixedDistributor {
|
||||||
constructor(item, cfg) {
|
constructor(item, cfg) {
|
||||||
super(item);
|
super(item);
|
||||||
const layout = cfg.layout;
|
this._handle = cfg.getLayout().openHandle(item.id);
|
||||||
this._handle = layout().openHandle(item.id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
finish() {
|
finish() {
|
||||||
|
|||||||
Reference in New Issue
Block a user