     for klass in "kdview #{cssClass}".split ' ' when klass.length
       el.classList.add klass
 
+    @element = el
     @domElement = $ el
 
     if @lazy

    @getElement().classList.contains cssClass

  getBounds: ->

    x : @getX()
    y : @getY()
    w : @getWidth()
    h : @getHeight()
    n : @constructor.name

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



  getDomElement:-> @domElement

  getElement:-> @element

  getTagName:-> @options.tagName || 'div'

