     @listController.on 'LazyLoadThresholdReached', @bound 'fetchChannels'
 
 
-  fetchChannels: ->
-
+  fetchChannels:(query = "") ->
+    
     return if @isFetching
 
     @isFetching = yes
 
-    selector = @query or ''
     options  =
+      name   : query
       limit  : @getOptions().itemLimit
       sort   : { timestamp: -1 }
-
       skip   : @skip
-
-    kd.singletons.socialapi.channel.searchTopics {name: "deneme"}, (err, channels) =>
+    console.log options
+    kd.singletons.socialapi.channel.searchTopics options , (err, channels) =>
+      @isFetching = no
+      console.log arguments
       if err
         @listController.lazyLoader?.hide()
         return kd.warn err
       
-      console.log channels
+
       @listChannels channels
-      @isFetching = no
+      
 
 
   listChannels: (channels) ->

KDListViewController = kd.ListViewController
KDHitEnterInputView  = kd.HitEnterInputView

TopicItemView = require './topicitemview'


module.exports = class TopicCommonView extends KDView


    @listController.removeAllItems()
    @listController.lazyLoader.show()
    @fetchChannels @query
    console.log @query