I'm working on migrating a project from JavaScriptMVC v1.x to v3.x. Since upgrading the modal dialogs are no longer working, here's a very simple example:
MyCustomController = ModalController.extend('my_custom_controller',
{
open: function(options) {
var options = options || {};
this.dispatch('my_action',options);
}
},
{
my_action : function(options) {
// do something
}
});
When "open" is trigger I get the following JavaScript error "this.dispatch is not a function". It seems like for some reason the class inheritance isn't working but I haven't been able to figure out why. Based on the doco it looks like ".extend" is no longer needed but removing it doesn't resolved the issue.
Does anyone have any ideas?
Thanks very much for your help.