nette.ajax.js
nette.ajax.js copied to clipboard
Spinner "start" called before "init"
I'm using latest version 2.2.0 and spinner extension. Start function is called before init function, which causes JavaScript error:
script.js Uncaught TypeError: Cannot read property 'show' of null
Why the start function is called before init?
I am sorry but I cannot reproduce this problem with latest Nette sandbox and nette.ajax.js 2.2.0. Could you share more of your code?
I had the same problem. The reason was that I called $.nette.ajax({...}) before $.nette.init().