Suppress underscore errors when not on the right page. Ideally page specific JS execution would take care of this.

This commit is contained in:
Ibrahim Awwal
2012-09-10 14:05:01 -07:00
parent 259e6e46ad
commit 042ab6d2ef

View File

@@ -1,6 +1,5 @@
if Backbone?
class @DiscussionThreadListView extends Backbone.View
template: _.template($("#thread-list-template").html())
events:
"click .search": "showSearch"
"click .browse": "toggleTopicDrop"
@@ -17,6 +16,7 @@ if Backbone?
@sidebar_padding = 10
@sidebar_header_height = 87
@boardName
@template = _.template($("#thread-list-template").html())
reloadDisplayedCollection: (thread) =>
thread_id = thread.get('id')