This is a migrated thread and some comments may be shown as answers.

Application.pane not set

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 21 Jun 2013, 05:00 PM
Hi,

I've just updated my version of Kendo UI to the latest commercial version.

I'm using the same application pattern as used in the Kendo Mobile Music Store (require.js, one js file per view).
I'm not sure if this has changed, but the initialisation of Application.pane now seems to occur after startup:-
$(function(){
    that.element = $(element ? element : document.body);
    that._setupPlatform();
    that._setupElementClass();
    that._attachHideBarHandlers();
    that.pane = new Pane(that.element, that.options);
    that._attachMeta();
 
    if (that.options.updateDocumentTitle) {
        that._setupDocumentTitle();
    }
 
    that._startHistory();
});
That means that anything that uses Application.pane (utils.redirect, utils.showLoading) on a "show" call from my initial view crashes thus:-

Uncaught TypeError: Cannot read property 'history' of undefined scripts/utils.js:54
  redirect  scripts/utils.js:54
Please let me know if you can help, or if I can provide further information.

Matt

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 25 Jun 2013, 06:09 AM
Hi Matt,

I am not sure what goes on in your case. The application initialization has always been inside a document.ready event handler. The view instantiations (and the triggering of their event handlers) happen afterwards - the _startHistory method starts that, to be more precise. Can you please isolate the problem in a jsbin sample? We will take a look. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Matt
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or