{"action":"closed","issue":{"url":"https://api.github.com/repos/nselesky/RESTaurant_App/issues/1","labels_url":"https://api.github.com/repos/nselesky/RESTaurant_App/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nselesky/RESTaurant_App/issues/1/comments","events_url":"https://api.github.com/repos/nselesky/RESTaurant_App/issues/1/events","html_url":"https://github.com/nselesky/RESTaurant_App/issues/1","id":72058068,"number":1,"title":"generalListView.js (Uncaught TypeError: undefined is not a function)","user":{"login":"nselesky","id":11450134,"avatar_url":"https://avatars.githubusercontent.com/u/11450134?v=3","gravatar_id":"","url":"https://api.github.com/users/nselesky","html_url":"https://github.com/nselesky","followers_url":"https://api.github.com/users/nselesky/followers","following_url":"https://api.github.com/users/nselesky/following{/other_user}","gists_url":"https://api.github.com/users/nselesky/gists{/gist_id}","starred_url":"https://api.github.com/users/nselesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nselesky/subscriptions","organizations_url":"https://api.github.com/users/nselesky/orgs","repos_url":"https://api.github.com/users/nselesky/repos","events_url":"https://api.github.com/users/nselesky/events{/privacy}","received_events_url":"https://api.github.com/users/nselesky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T04:17:48Z","updated_at":"2015-04-30T15:13:22Z","closed_at":"2015-04-30T15:13:22Z","body":"Code:\r\nvar app = app || {};\r\n\r\napp.GeneralListView = Backbone.View.extend({\r\n  initialize: function(options){\r\n    this.modelView = options.modelView;\r\n    this.listenTo(this.collection,'sync', this.render);\r\n  },\r\n  render: function(){\r\n    this.$el.empty();\r\n    var models = this.collection.models;\r\n    for (var i = 0; i < models.length; i++) {\r\n      var subView = new this.modelView({model: models[i]}); <----***** error on this line *****\r\n      subView.render();\r\n      this.$el.append( subView.$el );\r\n      subView.delegateEvents();\r\n    }\r\n    return this;\r\n  }\r\n});\r\n\r\nI have checked the code over and over and chrome dev tools keeps showing me the same error.\r\n\r\n"}}