don't assume config

This commit is contained in:
Bruno Windels 2018-10-18 15:51:01 +02:00
parent c1e602d56f
commit a910f46c5b

View file

@ -27,7 +27,7 @@ class FixedDistributor {
this.sizer = sizer;
this.item = item;
this.beforeOffset = sizer.getItemOffset(this.item);
this.onResized = config.onResized;
this.onResized = config && config.onResized;
}
resize(offset) {