tasks/init/bootplate/root/enyo/source/ajax/Jsonp.js
function(inParams, inCallbackFunctionName) {
		if (enyo.isString(inParams)) {
			return inParams.replace("=?", "=" + inCallbackFunctionName);
		} else {
			var params = enyo.mixin({}, inParams);
			params[this.callbackName] = inCallbackFunctionName;
			return enyo.Ajax.objectToQuery(params);
		}
	}
function(inParams, inCallbackFunctionName) {
		if (enyo.isString(inParams)) {
			return inParams.replace("=?", "=" + inCallbackFunctionName);
		} else {
			var params = enyo.mixin({}, inParams);
			params[this.callbackName] = inCallbackFunctionName;
			return enyo.Ajax.objectToQuery(params);
		}
	}
function ( inParams , inCallbackFunctionName ) { if ( enyo . isString ( inParams ) ) { return inParams . replace ( "=?" , "=" + inCallbackFunctionName ) ; } else { var params = enyo . mixin ( { } , inParams ) ; params [ this . callbackName ] = inCallbackFunctionName ; return enyo . Ajax . objectToQuery ( params ) ; } }
for a string version of inParams, we follow the convention of replacing the string "=?" with the callback name. For the more common case of inParams being an object, we'll add a argument named using the callbackName published property.
for a string version of inParams we follow the convention of replacing the string = ? with the callback name . For the more common case of inParams being an object we ll add a argument named using the callbackName published property .