Skip to content

Commit a06c315

Browse files
committed
Handle SubscriptionModule being disabled
Only fire `subscription.fetch()` if `subscriptionView` has been bound to an element.
1 parent ed17bec commit a06c315

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code_comments/htdocs/code-comments.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -364,5 +364,7 @@ var underscore = _.noConflict();
364364

365365
window.subscription = new Subscription();
366366
window.subscriptionView = new SubscriptionView({model: subscription});
367-
subscription.fetch();
367+
if (subscriptionView.el) {
368+
subscription.fetch();
369+
}
368370
}); }( jQuery.noConflict( true ) ) );

0 commit comments

Comments
 (0)