to:sync
This commit is contained in:
parent
868ab20031
commit
f43a7236d3
@ -80,8 +80,8 @@ define(function (require, exports, module) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
let firstItem = curSpanContent.childNodes[0];
|
let firstItem = curSpanContent.childNodes[0];
|
||||||
console.log("curSpanContent : ", curSpanContent, curSpanContent.childNodes.length, firstItem.nodeName, firstItem.nodeType);
|
let isEmptyStyle =/* curSpanContent.childNodes.length === 1 &&*/ firstItem.nodeName === "#text" ;/*&& firstItem.nodeType === 3*/
|
||||||
let isEmptyStyle = curSpanContent.childNodes.length === 1 && firstItem.nodeName === "#text" && firstItem.nodeType === 3;
|
console.log("curSpanContent : ", curSpanContent, curSpanContent.childNodes.length, firstItem.nodeName, firstItem.nodeType, isEmptyStyle);
|
||||||
if (isEmptyStyle) {
|
if (isEmptyStyle) {
|
||||||
let copySpan = curSpanContent.cloneNode();
|
let copySpan = curSpanContent.cloneNode();
|
||||||
copySpan.innerHTML = "";
|
copySpan.innerHTML = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user