 
   click:(e)->
     @handleEvent {type : "removeFile", orgEvent : e} if $(e.target).is "span.close-icon"
-    
+
   viewAppended:()->
     @$().append @partial @data
     # @addSubView new KDInputView


    reader.readAsDataURL file

  fileReadComplete:(pubInst,event)->  
    file = event.file
    file.data = event.progressEvent.target.result
    @putFileInQueue file
  
  putFileInQueue:(file)->
    if not @isDuplicate(file) and @checkLimits(file)
      @files[file.name] = file

  addItem:(file)->
    itemInstance = new KDKDFileUploadListItemView {delegate : @},file
    @getDelegate().listenTo
      KDEventTypes:
        eventType:        "removeFile"
      listenedToInstance: itemInstance
      callback:           @getDelegate().removeFile
