From eec82723d870d4c5dcf71b8e7e7e36e516f50656 Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Tue, 10 Apr 2012 22:12:52 +0530 Subject: [PATCH] Removes logging Signed-off-by: Akash Manohar J --- app/assets/javascripts/backbone/data/attachments.js.coffee | 2 -- app/assets/javascripts/backbone/plugins/attachments.js.coffee | 3 --- 2 files changed, 5 deletions(-) diff --git a/app/assets/javascripts/backbone/data/attachments.js.coffee b/app/assets/javascripts/backbone/data/attachments.js.coffee index 396503f4..f3c8888d 100644 --- a/app/assets/javascripts/backbone/data/attachments.js.coffee +++ b/app/assets/javascripts/backbone/data/attachments.js.coffee @@ -1,7 +1,5 @@ class Kandan.Data.Attachments @callbacks: { "change": [] } - @cache: [] - @all: (callback)-> attachments = new Kandan.Collections.Attachments([], { diff --git a/app/assets/javascripts/backbone/plugins/attachments.js.coffee b/app/assets/javascripts/backbone/plugins/attachments.js.coffee index 6100821c..4ef750de 100644 --- a/app/assets/javascripts/backbone/plugins/attachments.js.coffee +++ b/app/assets/javascripts/backbone/plugins/attachments.js.coffee @@ -57,7 +57,6 @@ class Kandan.Plugins.Attachments # TODO this part is very bad for APIs! shoudnt be exposing a backbone collection in a plugin. @render: ($widget_el)-> - console.log "Render attachments!" $upload_form = @templates.dropzone({ channel_id: @channel_id(), csrf_param: @csrf_param(), @@ -69,7 +68,6 @@ class Kandan.Plugins.Attachments $widget_el.next(".action_block").html($upload_form) populate = (collection)=> - console.log "render", collection.models if collection.models.length > 0 $file_list = $("
") for model in collection.models @@ -83,7 +81,6 @@ class Kandan.Plugins.Attachments $widget_el.html($file_list) Kandan.Data.Attachments.all(populate) - console.log "render completes" @initDropzone: ->