You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<link href="http://cdn.quilljs.com/1.0.0-beta.6/quill.snow.css" rel="stylesheet">
<div id="editor">
<p>Hello World!</p>
</div>
<script src="http://cdn.quilljs.com/1.0.0-beta.6/quill.min.js"></script>
<script>
var data = {
'tmp': [],
};
for(var block in data.tmp){
console.log("test: " + data.tmp[block]);
}
</script>
<script>
var editor = new Quill('#editor', {
theme: 'snow'
});
</script>
Expected behavior: No console.log message
Actual behavior: console.log message "test: function(predicate){if(this===null){throw ..."
Platforms: IE 11 and PhantomJS
Version: 1.0.0-beta.6
Fix: In file /core/polyfill.js replace. I only tested this by replacing this in the released version.
if (!Array.prototype.find) {
Array.prototype.find = function(predicate) {
if (this === null) {
throw new TypeError('Array.prototype.find called on null or undefined');
}
if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
var list = Object(this);
var length = list.length >>> 0;
var thisArg = arguments[1];
var value;
for (var i = 0; i < length; i++) {
value = list[i];
if (predicate.call(thisArg, value, i, list)) {
return value;
}
}
return undefined;
};
}
with:
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, "find", {
value: function(predicate) {
if (this === null) {
throw new TypeError('Array.prototype.find called on null or undefined');
}
if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
var list = Object(this);
var length = list.length >>> 0;
var thisArg = arguments[1];
var value;
for (var i = 0; i < length; i++) {
value = list[i];
if (predicate.call(thisArg, value, i, list)) {
return value;
}
}
return undefined;
};
});
}
The text was updated successfully, but these errors were encountered:
Steps for Reproduction
Open this HTML code in IE 11:
Expected behavior: No console.log message
Actual behavior: console.log message "test: function(predicate){if(this===null){throw ..."
Platforms: IE 11 and PhantomJS
Version: 1.0.0-beta.6
Fix: In file /core/polyfill.js replace. I only tested this by replacing this in the released version.
with:
The text was updated successfully, but these errors were encountered: