From 042ab6d2efd5a39a988aadb043f729367f42a2dc Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Mon, 10 Sep 2012 14:05:01 -0700 Subject: [PATCH] Suppress underscore errors when not on the right page. Ideally page specific JS execution would take care of this. --- .../src/discussion/views/discussion_thread_list_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee b/lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee index b77e76d29d..58ae88dd31 100644 --- a/lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee +++ b/lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee @@ -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')