   else
     compileCache = {}
 
-  $(window).on('unload', () -> 
+  $(window).on('unload', -> 
     localStorage[cacheKey] = JSON.stringify(compileCache) 
     # console.log 'onunload', localStorage[cacheKey]
   )



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

      return if @skip()
    
    # returns true if the layout should't update 
    skip: ->
      true if @locked or (not @parent?.subviews) or (@parent.subviews.length == 0)

    destroy: ->
