Add resize events bubbling from block to containers

https://marionettejs.com/docs/master/events.html#event-bubbling
[MAIPOET-1816]
This commit is contained in:
Rostislav Wolny
2019-03-12 15:56:28 +01:00
committed by M. Shull
parent d445495cba
commit ad05c0ca94
3 changed files with 26 additions and 2 deletions

View File

@@ -96,6 +96,12 @@ Module.ContainerBlocksView = Marionette.CollectionView.extend({
initialize: function (options) {
this.renderOptions = options.renderOptions;
},
onChildviewResizeStart: function onChildviewResizeStart() {
this.triggerMethod('resizeStart');
},
onChildviewResizeStop: function onChildviewResizeStart(event) {
this.triggerMethod('resizeStop', event);
},
});
Module.ContainerBlockView = base.BlockView.extend({