silk.daghap.carousel = xb.core.object.extend( { } ); silk.daghap.carousel.mount = xb.core.object.extend( silk.daghap.items.mount, { ctor: function( domNode, name, resource ) { this.$id = 0; this.indexed = {}; this.DOMNodeHandler = silk.daghap.carousel.mount.handler; silk.node.mount.prototype.ctor.call( this, domNode, name, resource ); return; silk.daghap.items.mount.prototype.ctor.call( this, domNode, name, resource ); this.DOMNodeHandler = silk.daghap.carousel.mount.handler; } } ); silk.daghap.carousel.mount.handler = xb.core.object.extend( silk.carousel.mount.handler, { factory: function( mount, domNode ) { return new silk.daghap.carousel.mount.handler( mount, domNode ); }, display: function() { var selection = this.mount.getSelection(); var items = ( silk.inEditMode() ) ? selection.items : selection.items.slice( 0, 5 ); return silk.carousel.mount.handler.prototype.display.call( this, items, true ); } } );