diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index ad3fa2b90..20f68850c 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -581,6 +581,11 @@ BI.Layout = BI.inherit(BI.Widget, { } }, + empty: function () { + BI.Layout.superclass.empty.apply(this, arguments); + this.options.items = []; + }, + destroy: function () { BI.Layout.superclass.destroy.apply(this, arguments); this.options.items = [];