Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

View.done is not a function

$
0
0
Hi
I tried http://yacine.org/2012/01/16/jmvc-jqm-improved-dispatch/
Unfortunately I get an error at the view.done dereffer.
Firebug console:

TypeError: $instance.view.done is not a function
$instance.view.done(function (htmlOutput){

Do anybody knows whats the mistake?
I'm using ejs files.
My controller looks like
  1. $.Controller('Inventory.Pages.Main',
        /** @Static */
        {
            defaults : {
                title: 'Inventory',
                pageID: 'main'
            },
            pluginName: 'main'
        },
        /** @Prototype */
        {
            /**
             * Downloads and renders a full page of blog posts
             */
            init : function() {
                this.view = $.View("../inventory/application/views/pages/inventory_main.ejs",{
                    pageID: this.options.pageID,
                    title: this.options.title
                });
            }
        }
    ); // End of controller


Viewing all articles
Browse latest Browse all 3491

Trending Articles