Sha256: 6fd678ed4c716ec541c08afa5eea686f3a0f77fef8e94aced3d523930c96c43f
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
class Trix.ObjectGroupView extends Trix.ObjectView constructor: -> super @objectGroup = @object {@viewClass} = @options delete @options.viewClass getChildViews: -> unless @childViews.length for object in @objectGroup.getObjects() @findOrCreateCachedChildView(@viewClass, object, @options) @childViews createNodes: -> element = @createContainerElement() for view in @getChildViews() element.appendChild(node) for node in view.getNodes() [element] createContainerElement: (depth = @objectGroup.getDepth()) -> @getChildViews()[0].createContainerElement(depth)
Version data entries
4 entries across 4 versions & 1 rubygems