initControllers
antonko opened this issue · comments
When initializing(initControllers) the controller error.
through route other controllers work well
Uncaught TypeError: undefined is not a function app_mobile.js:68
Chaplin.Application.extend.initControllers app_mobile.js:68
Chaplin.Application.extend.initialize app_mobile.js:32
(anonymous function) localhost:69
context.execCb require-2.1.1.js:1585
Module.check
menu_controller.js
define([
'controllers/base/controller',
'views/home_view'
], function (Controller, MenuView) {
'use strict';
var MenuController = Controller.extend({
initialize:function (params) {
this.view = new MenuView();
}
});
return MenuController;
});
Please use three backticks next time to format code. (```)
I’m not sure where the errors comes from, you can debug stuff via browser debugger: go to (chrome) sources → click on “pause on uncaught exceptions” (button on the bottom of web inspector a-la pause)
Спасибо
Попробовал на чистом проекте - все работает, где-то я ошибся.