nette.ajax.js icon indicating copy to clipboard operation
nette.ajax.js copied to clipboard

Spinner "start" called before "init"

Open matoni555 opened this issue 9 years ago • 2 comments

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?

matoni555 avatar Oct 23 '16 08:10 matoni555

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?

vojtech-dobes avatar Feb 23 '17 21:02 vojtech-dobes

I had the same problem. The reason was that I called $.nette.ajax({...}) before $.nette.init().

brosland avatar Apr 15 '17 10:04 brosland