       if @started and type is 'mousemove'
         @x = event.pageX
         @y = event.pageY
-        onIdle(0, @sender) 
+        idle(0, @sender) 
       else 
         @sendEvent(type, view)
 

      ticking = false

    (key, callback) ->
      # console.log('onIdle', key, callback)
      # if (tickEvents[key] !== null) console.log('hit', key)
      if !ticking
        requestAnimationFrame(doTick)

    keyboard: keyboard
    layout: Layout
    simplelayout: SimpleLayout
    initElements: dom.initAllElements
    writeCSS: dom.writeCSS


lz.writeCSS()
$(window).on('load', -> 
  lz.initElements() 
  # listen for jQuery style changes
  hackstyle(true)
)