Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

jquery兼容性问题 #165

Closed
zhaob opened this issue May 5, 2014 · 5 comments
Closed

jquery兼容性问题 #165

zhaob opened this issue May 5, 2014 · 5 comments

Comments

@zhaob
Copy link

zhaob commented May 5, 2014

Hello~
自己用最新的jquery1.11.0做的demo成功,但是有个项目用jquery版本号为1.7.2,发现貌似与webuploader不兼容。
没找到相关文档说明与jquery版本的兼容性,可否明确一下?

@2betop
Copy link
Contributor

2betop commented May 5, 2014

有错误信息吗?

@zhaob
Copy link
Author

zhaob commented May 5, 2014

压缩图片过程中在CutFile方法中报错,入参应为file对象,但实际为boolean的true。
尝试将compress设置为false,不错任何错了,但是仍旧不能上传,http请求没有发出,事件触发到startUpload。

@2betop
Copy link
Contributor

2betop commented May 6, 2014

这几天比较忙,等我有空了看看。

@2betop
Copy link
Contributor

2betop commented May 13, 2014

初步判断是 promise 的兼容性问题。打包的时候选择内置的promise可以快速解决这个问题。

如下图,把promise的builtin 改成 true。

image

后续再细究是哪不一样。

@2betop
Copy link
Contributor

2betop commented May 13, 2014

已经解决,老版本的 then 方法与新版本的 then 方法有差异,改用 pipe 后解决问题。已更新到最新 master 分支。

@2betop 2betop closed this as completed May 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants