django-dajaxice icon indicating copy to clipboard operation
django-dajaxice copied to clipboard

Improper calls order in some cases

Open alfishe opened this issue 11 years ago • 0 comments

Found weird issue with sequence of calls recently. Symptoms: dajaxice.core.js is successfully generated but contains no methods that should appear due to registering python methods using @dajaxice_register()

on my configuration page is generated by Django, sent to client, then request from client for dajaxice.core.js arrived and served by DajaxiceFinder using DajaxiceStorage.dajaxice_core_js

still no calls to @dajaxice_register()!!! so no JS functions generated in js

and only then, sic! all @dajaxice_register() decorators are called but no sense in it.

Trying to understand the reason but have no idea why such behavior appeared.

alfishe avatar Apr 24 '13 18:04 alfishe