UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

25 lines (24 loc) 706 B
/** * DevExtreme (esm/__internal/integration/jquery/ajax.js) * Version: 25.2.3 * Build date: Fri Dec 12 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { Ajax } from "../../core/utils/m_ajax"; import jQuery from "jquery"; import useJQueryFn from "./use_jquery"; const useJQuery = useJQueryFn(); if (useJQuery) { Ajax.inject({ sendRequest(options) { if (!options.responseType && !options.upload) { return jQuery.ajax(options) } return this.callBase.apply(this, [options]) } }) }