Skip to content

Instantly share code, notes, and snippets.

@pagenoare
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pagenoare/bb90c4b67112fd7ae24f to your computer and use it in GitHub Desktop.
Save pagenoare/bb90c4b67112fd7ae24f to your computer and use it in GitHub Desktop.
Uncaught TypeError: undefined is not a function
bundled.js:7638_.each.Events.(anonymous function)
bundled.js:5941Marionette.CollectionView.Marionette.View.extend._initialEvents
bundled.js:7513(anonymous function)
bundled.js:19075_.before
bundled.js:7620triggerEvents
bundled.js:7561Backbone.Events.trigger
bundled.js:4505(anonymous function)
bundled.js:5711Marionette.View.Backbone.View.extend.triggerMethod
bundled.js:5978Marionette.CollectionView.Marionette.View.extend.render
bundled.js:2671441.../../../templates/video.html
bundled.js:19663s
bundled.js:19663e
bundled.js:19663(anonymous function)
'use strict';
// IMPORTS
var $ = require('jquery'),
Backbone = require('backbone'),
VideoTemplate = require('../../../templates/video.html');
Backbone.Marionette = require('backbone.marionette');
var Video = Backbone.Model.extend({});
var Videos = Backbone.Collection.extend({
model: Video
});
var VideoView = Backbone.Marionette.ItemView.extend({
template: VideoTemplate
});
var VideoController = Backbone.Marionette.CollectionView.extend({
childView: VideoView
});
new VideoController({el: '#videos', collection: Videos}).render();
module.exports = {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment