Merge pull request #692 from 4sh/master
Allow to pass a callback as ajax.url configuration parameter
This commit is contained in:
commit
b562d1a0e5
@ -316,7 +316,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
if( null !== handler) { handler.abort(); }
|
if( null !== handler) { handler.abort(); }
|
||||||
|
|
||||||
handler = transport.call(null, {
|
handler = transport.call(null, {
|
||||||
url: options.url,
|
url: ((typeof options.url === 'function')?options.url():options.url),
|
||||||
dataType: options.dataType,
|
dataType: options.dataType,
|
||||||
data: data,
|
data: data,
|
||||||
type: type,
|
type: type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user