rename to getLayout

This commit is contained in:
Bruno Windels 2019-02-04 18:38:31 +00:00
parent d30ff13c18
commit f029aad9fa
2 changed files with 2 additions and 3 deletions

View file

@ -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({

View file

@ -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() {