Commit 4f622450 by Rocky Duan

fixed null text error

parent 0c6f05f4
......@@ -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")
......
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