     # Create object literals to store panels and stages.
     @panels = {}
     @stages = {}
-    # Create a stage div to serve as a prototype. 
+    # Create a stage div to serve as a prototype.
     stage = document.createElement 'div'
     # The stage should occupy the full width and height of the target element.
     stage.style.width = @width + 'px'

        @panels[@lastAnchor][0].addEventListener css.transitionEnd, onTransitionEnd, false


  # `_transform` returns a `rotate3d` transform string based on the anchor and angle.
  _transform: (angle, fracture) ->
    switch @lastAnchor

    @_elStyle = root.getComputedStyle @el

    # Save the original CSS display of the target. If `none`, assume `block`.
    @displayStyle = @_elStyle.display
    if @displayStyle is 'none'
      @displayStyle = 'block'

    # To calculate the full dimensions of the element, create arrays of relevant metric keys.
    xMetrics = ['width', 'paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth']
    yMetrics = ['height', 'paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']

    # Add up values for width and height using `_getMetric()`.
    @width = 0
    @height = 0
    @width += @_getMetric metric for metric in xMetrics
    @height += @_getMetric metric for metric in yMetrics

    # Calculate the panel width and panel height by dividing the total width and
    # height by the requested number of panels in each axis.
