1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Revert "Added ajax.transport support to default options"

This reverts commit 04a6535bd5.
This commit is contained in:
Igor Vaynberg 2013-03-25 09:17:19 -07:00
parent 94c1706c67
commit 7a3d3dcd2b

View File

@ -355,7 +355,7 @@ the specific language governing permissions and limitations under the Apache Lic
var requestNumber = requestSequence, // this request's sequence number var requestNumber = requestSequence, // this request's sequence number
data = options.data, // ajax data function data = options.data, // ajax data function
url = ajaxUrl, // ajax url string or function url = ajaxUrl, // ajax url string or function
transport = options.transport, transport = options.transport || $.ajax,
type = options.type || 'GET', // set type of request (GET or POST) type = options.type || 'GET', // set type of request (GET or POST)
params = {}; params = {};
@ -731,7 +731,7 @@ the specific language governing permissions and limitations under the Apache Lic
}); });
} }
opts = $.extend(true, {}, { opts = $.extend({}, {
populateResults: function(container, results, query) { populateResults: function(container, results, query) {
var populate, data, result, children, id=this.opts.id, self=this; var populate, data, result, children, id=this.opts.id, self=this;
@ -2764,12 +2764,7 @@ the specific language governing permissions and limitations under the Apache Lic
blurOnChange: false, blurOnChange: false,
selectOnBlur: false, selectOnBlur: false,
adaptContainerCssClass: function(c) { return c; }, adaptContainerCssClass: function(c) { return c; },
adaptDropdownCssClass: function(c) { return null; }, adaptDropdownCssClass: function(c) { return null; }
ajax: {
transport: function(options) {
return $.ajax(options);
}
}
}; };
// exports // exports