MCPcopy Create free account
hub / github.com/dcloudio/mui / parseArguments

Function parseArguments

js/mui.ajax.js:109–122  ·  view source on GitHub ↗
(url, data, success, dataType)

Source from the content-addressed store, hash-verified

107 xmlTypeRE.test(mime) && 'xml') || 'text';
108 };
109 var parseArguments = function(url, data, success, dataType) {
110 if($.isFunction(data)) {
111 dataType = success, success = data, data = undefined;
112 }
113 if(!$.isFunction(success)) {
114 dataType = success, success = undefined;
115 }
116 return {
117 url: url,
118 data: data,
119 success: success,
120 dataType: dataType
121 };
122 };
123 $.ajax = function(url, options) {
124 if(typeof url === "object") {
125 options = url;

Callers 1

mui.ajax.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected