fixed null text error
This commit is contained in:
@@ -45,6 +45,7 @@ $ ->
|
||||
|
||||
removeMath: (text) ->
|
||||
|
||||
text = text || ""
|
||||
@math = []
|
||||
start = end = last = null
|
||||
braces = 0
|
||||
|
||||
@@ -11,7 +11,6 @@ class @ThreadResponseView extends DiscussionContentView
|
||||
render: ->
|
||||
@$el.html(@template(@model.toJSON()))
|
||||
@initLocal()
|
||||
console.log @$local
|
||||
@delegateEvents()
|
||||
if window.user.voted(@model)
|
||||
@$(".vote-btn").addClass("is-cast")
|
||||
|
||||
Reference in New Issue
Block a user