 
   getDomElement:-> @domElement
 
-  getElement:-> @getDomElement()[0]
+  getElement:-> @element
 
   getTagName:-> @options.tagName || 'div'
 

    positionOptions.position = "absolute"
    @$().css positionOptions

  getWidth:-> @$().outerWidth no

  setWidth:(w, unit = "px")->
    @getElement().style.width = "#{w}#{unit}"

    @getElement().classList.contains cssClass

  getBounds: ->
    $el = @domElement
    rect = @element.getBoundingClientRect()

    return {
      x : rect.left
      y : rect.top
      w : $el.outerWidth no
      h : $el.outerHeight no
      n : @constructor.name
    }

  setRandomBG:->@getDomElement().css "background-color", KD.utils.getRandomRGB()

