Replace incorrect jQuery.size() method

This commit is contained in:
Emmanuel Vella 2014-09-03 15:30:11 +02:00
parent ca0dd69752
commit 2d87ad0fe1

View File

@ -262,7 +262,7 @@
}; };
var displayFinalUrl = function(xhr, method, url, data, container) { var displayFinalUrl = function(xhr, method, url, data, container) {
if ('GET' == method && jQuery(data).size()) { if ('GET' == method && !jQuery.isEmptyObject(data)) {
var separator = url.indexOf('?') >= 0 ? '&' : '?'; var separator = url.indexOf('?') >= 0 ? '&' : '?';
url = url + separator + decodeURIComponent(jQuery.param(data)); url = url + separator + decodeURIComponent(jQuery.param(data));
} }