vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

Spinner "start" called before "init" #136

Open matoni555 opened 8 years ago

matoni555 commented 8 years ago

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?

vojtech-dobes commented 7 years ago

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?

brosland commented 7 years ago

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