fixed null text error

This commit is contained in:
Rocky Duan
2012-09-04 20:16:37 -07:00
parent 0c6f05f45c
commit 4f62245031
2 changed files with 1 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ $ ->
removeMath: (text) ->
text = text || ""
@math = []
start = end = last = null
braces = 0

View File

@@ -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")