Repository: incubator-weex
Updated Branches:
  refs/heads/master 94f68f238 -> 403563d8f


* [html5] add custom jsonp callback name support


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5f5fdd71
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5f5fdd71
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5f5fdd71

Branch: refs/heads/master
Commit: 5f5fdd71eecc7b34f9fa7978db622c53c8723d3e
Parents: e52d273
Author: Yujingyi <349758...@qq.com>
Authored: Wed Sep 20 16:16:13 2017 +0800
Committer: Yujingyi <349758...@qq.com>
Committed: Wed Sep 20 16:16:13 2017 +0800

----------------------------------------------------------------------
 html5/render/browser/extend/api/stream.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5f5fdd71/html5/render/browser/extend/api/stream.js
----------------------------------------------------------------------
diff --git a/html5/render/browser/extend/api/stream.js 
b/html5/render/browser/extend/api/stream.js
index 8e27dd7..d843a10 100644
--- a/html5/render/browser/extend/api/stream.js
+++ b/html5/render/browser/extend/api/stream.js
@@ -30,7 +30,7 @@ let jsonpCnt = 0
 const ERROR_STATE = -1
 
 function _jsonp (config, callback, progressCallback) {
-  const cbName = 'jsonp_' + (++jsonpCnt)
+  const cbName = config.jsonpCallbackName || 'jsonp_' + (++jsonpCnt)
   let url
 
   if (!config.url) {

Reply via email to