Backbone View: function is undefined
问题 I want to build a simple backbone app for depositing and withdrawing funds via Stripe. Since a lot of the functionality is common, I placed that in a Stripe view, and extend the Deposit and Withdraw views from it, like so: var App = { Models: {}, Collections: {}, Views: {}, Router: {} } App.Views.Home = Backbone.View.extend({ el: $('#main-content'), template: Handlebars.compile($('#home-template').html()), render: function() { this.$el.html(this.template()) return this }, events: { 'click