Removes default version

Updates all AJAX requests to include api version
Requires namespaces to have version
Clean up code
This commit is contained in:
Vlad
2017-04-19 21:05:55 -04:00
parent b549f83422
commit 6a65ff5e5d
36 changed files with 186 additions and 103 deletions

View File

@ -27,11 +27,6 @@ define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery,
if(this.options.token === null) {
this.options.token = window.mailpoet_token;
}
// set default API version
if(this.options.api_version === null) {
this.options.api_version = window.mailpoet_api_version;
}
},
getParams: function() {
return {