Commit bee25f3b by Kevin Chugh

fix git mangle take 3

parent 9d57f0a9
...@@ -150,12 +150,6 @@ if Backbone? ...@@ -150,12 +150,6 @@ if Backbone?
else else
@get("title") @get("title")
comment_count: ->
count = 0
@get('comments').each (comment) ->
count += comment.getCommentsCount() + 1
count
class @Comments extends Backbone: -> class @Comments extends Backbone: ->
if @has("highlighted_title") if @has("highlighted_title")
String(@get("highlighted_title")).replace(/<highlight>/g, '<mark>').replace(/<\/highlight>/g, '</mark>') String(@get("highlighted_title")).replace(/<highlight>/g, '<mark>').replace(/<\/highlight>/g, '</mark>')
...@@ -171,7 +165,6 @@ if Backbone? ...@@ -171,7 +165,6 @@ if Backbone?
created_at_time: -> created_at_time: ->
new Date(@get("created_at")).getTime() new Date(@get("created_at")).getTime()
class @Comment extends @Content class @Comment extends @Content
urlMappers: urlMappers:
...@@ -185,8 +178,6 @@ if Backbone? ...@@ -185,8 +178,6 @@ if Backbone?
'flagAbuse' : -> DiscussionUtil.urlFor("flagAbuse_#{@get('type')}", @id) 'flagAbuse' : -> DiscussionUtil.urlFor("flagAbuse_#{@get('type')}", @id)
'unFlagAbuse' : -> DiscussionUtil.urlFor("unFlagAbuse_#{@get('type')}", @id) 'unFlagAbuse' : -> DiscussionUtil.urlFor("unFlagAbuse_#{@get('type')}", @id)
getCommentsCount: -> getCommentsCount: ->
count = 0 count = 0
@get('comments').each (comment) -> @get('comments').each (comment) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment