Skip to content

Commit

Permalink
Removes logging
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 10, 2012
1 parent 2fd9647 commit eec8272
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/backbone/data/attachments.js.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class Kandan.Data.Attachments
@callbacks: { "change": [] }
@cache: []


@all: (callback)->
attachments = new Kandan.Collections.Attachments([], {
Expand Down
3 changes: 0 additions & 3 deletions app/assets/javascripts/backbone/plugins/attachments.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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 = $("<div class='file_list'></div>")
for model in collection.models
Expand All @@ -83,7 +81,6 @@ class Kandan.Plugins.Attachments
$widget_el.html($file_list)

Kandan.Data.Attachments.all(populate)
console.log "render completes"


@initDropzone: ->
Expand Down

0 comments on commit eec8272

Please sign in to comment.