1
0
mirror of synced 2025-02-04 14:19:23 +03:00

allow ajax.data to be undefined. fixes #732

This commit is contained in:
Igor Vaynberg 2013-01-23 09:24:23 -08:00
parent 7d8409393c
commit 4e92c8b1b4

View File

@ -311,7 +311,7 @@ the specific language governing permissions and limitations under the Apache Lic
traditional = options.traditional || false, traditional = options.traditional || false,
type = options.type || 'GET'; // set type of request (GET or POST) type = options.type || 'GET'; // set type of request (GET or POST)
data = data.call(this, query.term, query.page, query.context); data = data ? data.call(this, query.term, query.page, query.context) : null;
if( null !== handler) { handler.abort(); } if( null !== handler) { handler.abort(); }