Fix line endings

[MAILPOET-929]
This commit is contained in:
Pavel Dohnal
2017-06-22 10:25:07 +01:00
parent ff46784adf
commit f874ae6ca8

View File

@ -1,5 +1,5 @@
define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery, _) { define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery, _) {
'use strict';
MailPoet.Ajax = { MailPoet.Ajax = {
version: 0.5, version: 0.5,
options: {}, options: {},
@ -44,7 +44,6 @@ define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery,
// set request params // set request params
var params = this.getParams(); var params = this.getParams();
var deferred = jQuery.Deferred();
// remove null values from the data object // remove null values from the data object
if (_.isObject(params.data)) { if (_.isObject(params.data)) {
@ -54,7 +53,7 @@ define('ajax', ['mailpoet', 'jquery', 'underscore'], function(MailPoet, jQuery,
} }
// ajax request // ajax request
deferred = jQuery.post( var deferred = jQuery.post(
this.options.url, this.options.url,
params, params,
null, null,