everlutionsk / ajaxcom-js

1 stars 5 forks source link

Make ajaxcom request from my own script #8

Open klinec opened 6 years ago

klinec commented 6 years ago

I'd like to be able make ajaxcom request like it was possible in previous version $.ajaxcom(...). It would be nice if it could inherit options which were set when initialized.

For example if I set require('@everlutionsk/ajaxcom').ajaxcom({beforeStart: spinnerStart(), onComplete: spinnerStop()}); then all ajaxcom requests should behave the same unless other options are set.