Skip to content

Commit

Permalink
Less console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 13, 2012
1 parent 979a1b9 commit cef9e87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions app/assets/javascripts/backbone/plugins/emoticons.js.coffee
Expand Up @@ -3,7 +3,7 @@ class Kandan.Plugins.Emoticons
@options:
regex: /\([a-zA-Z]+\)/g
template: _.template '''
<img class="emoticon-embed" src="/assets/emoticons/<%= emoticon %>" height="30" width="30" />
<img class="emoticon-embed" src="/assets/emoticons/<%= emoticon %>" height="40" width="40" />
'''


Expand Down Expand Up @@ -39,10 +39,8 @@ class Kandan.Plugins.Emoticons
emoticon = @emoticons[match]
needle = match.replace('(', '\\(').replace(')', '\\)')
search = new RegExp(needle, 'g')
console.log(search)
replacement = @options.template({ emoticon: emoticon })
message.content = message.content.replace(search, replacement) if emoticon
console.log(message.content)
return Kandan.Helpers.Activities.buildFromBaseTemplate(message)

# Kandan.Plugins.register "Kandan.Plugins.Emoticons"
Expand Up @@ -3,7 +3,6 @@ class Kandan.Views.ChannelPane extends Backbone.View

render: (container)->
container = container || $(@el)
console.log("channel view render", container);
$(container).html @paginatedActivitiesView()
$(container).append @chatboxView()
@setIdAndData(container)
Expand Down

0 comments on commit cef9e87

Please sign in to comment.