 isSoloProductLite       = require 'app/util/issoloproductlite'
 kookies                 = require 'kookies'
 
-module.exports = class MainView extends KDView
+module.exports = class MainView extends kd.View
 
   constructor: (options = {}, data)->
 
     mobileDevices       = /Android|iPhone|iPod/i
-
     options.domId       = 'kdmaincontainer'
     options.cssClass    = if globals.isLoggedInOnLoad then 'with-sidebar' else ''
     options.deviceType  = if mobileDevices.test navigator.userAgent then 'mobile' else 'desktop'

      @aside.addSubView @sidebar = new SidebarView
      return

    @aside.addSubView @sidebar = new KDCustomScrollView
      offscreenIndicatorClassName: 'unread'
      # FW should be checked
      # this works weird somehow - SY
      # offscreenIndicatorClassName: if isKoding() then 'unread' else 'SidebarListItem-unreadCount'

    @sidebar.addSubView moreItemsAbove = new KDView
      cssClass  : 'more-items above hidden'
      partial   : 'Unread items'

    @sidebar.addSubView moreItemsBelow = new KDView
      cssClass  : 'more-items below hidden'
      partial   : 'Unread items'


kd                      = require 'kd'
async                   = require 'async'
globals                 = require 'globals'
remote                  = require('./remote').getInstance()
