does dropzone-amd-module.js support IE 11?

蹲街弑〆低调 提交于 2021-01-29 07:12:01

问题


Per the dropzone site version 5.0 should support IE10+. I am using dropzone-amd-module.js ver 5.5 in a Durandal app and IE11 does not seem to support Symbol.iterator. Since I need to support IE11 at least for a little while I'm looking for options. Does any know what the latest version of dropzone-amd-module.js is that will run in IE11?


回答1:


The fix was to remove any reference to Symbol.iterator wherever it occurs (a few dozen places) from dropzone-amd-module.js like this:

replace this

for (var _iterator2 = this.element.getElementsByTagName("div"), _isArray2 = 
Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : 
_iterator2[Symbol.iterator]();;) {

with this

for (var _iterator2 = this.element.getElementsByTagName("div"), _isArray2 = true, _i2 
= 0; ;) {


来源:https://stackoverflow.com/questions/63385799/does-dropzone-amd-module-js-support-ie-11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!