Showing posts with label backbone. Show all posts
Showing posts with label backbone. Show all posts

Friday, 1 May 2015

Uncaught UndefinedTemplateError: Cannot render the template since it is null or undefined.

define([
'marionette',
// 'templates',
    'underscore',
    'models/Itinerary'
], function (Marionette, templates, _,Model) {
'use strict';
template: templates.route_itinerary_item,


the 'templates' require has been comment out by accident.

Wednesday, 17 December 2014

Marionette region close doesn't work

MySpace.dialogRegion.close();

debug console :
 Uncaught TypeError: undefined is not a function

--
use empty() rather than close();