From ef34b4a25725d41835cb65aa7f0dea43cec3e46a Mon Sep 17 00:00:00 2001 From: b1ngx Date: Sat, 9 May 2020 15:28:46 +0800 Subject: [PATCH] Update Jsonp.ts fix jsonpCallback always undefined --- lib/core/Jsonp.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/Jsonp.ts b/lib/core/Jsonp.ts index c2dfb42..959e1f5 100644 --- a/lib/core/Jsonp.ts +++ b/lib/core/Jsonp.ts @@ -23,15 +23,15 @@ export default class Jsonp { url, jsonpCallback }) + this.initState({ + timeout, + jsonpCallback + }) this.encodeURL({ url, callbackParams, urlParams }) - this.initState({ - timeout, - jsonpCallback - }) this.insert(this._url) }