(function(){"use strict";u8.Base.Widgets.WidgetCollection=function(e){this.ChildCollection(e)};u8.Base.Widgets.WidgetCollection.makeClass({name:"WidgetCollection",deriveFrom:u8.Base.ChildCollection});$.extend(u8.Base.Widgets.WidgetCollection.prototype,{removeChildrenOf:function(e){var i=this.size(),t=0;for(var o=0;o<i;o++){var n=this.at(o);if(n.element!=e&&!u8.Base.Dom.isChildOf(n.element,e)){continue}this.removeAt(o);t++;o--;i=this.size()}return t}})})();