- Avoid erring during resize on encountering MathML (which have no `style`)

master
Brett Zamir 2018-06-25 13:26:13 +08:00
parent 30b2f3cfe1
commit efc3f5aaba
1 changed files with 3 additions and 0 deletions

View File

@ -1390,6 +1390,9 @@ const mouseDown = function (evt) {
const all = mouseTarget.getElementsByTagName('*'), const all = mouseTarget.getElementsByTagName('*'),
len = all.length; len = all.length;
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
if (!all[i].style) { // mathML
continue;
}
all[i].style.vectorEffect = 'non-scaling-stroke'; all[i].style.vectorEffect = 'non-scaling-stroke';
if (iswebkit) { delayedStroke(all[i]); } if (iswebkit) { delayedStroke(all[i]); }
} }