Cleanup
This commit is contained in:
parent
bb58472a5c
commit
1ef4cd2a2e
@ -94,10 +94,9 @@ class BesEditor {
|
||||
}
|
||||
}
|
||||
|
||||
const clientRect = BesEditor.addMistake(range, match)
|
||||
matches.push({
|
||||
range: range,
|
||||
rects: clientRect,
|
||||
rects: BesEditor.addMistake(range, match),
|
||||
match: match
|
||||
})
|
||||
})
|
||||
@ -217,9 +216,8 @@ class BesEditor {
|
||||
|
||||
// Tests if given element is block element.
|
||||
static isBlockElement(el) {
|
||||
const defaultView = document.defaultView
|
||||
switch (
|
||||
defaultView
|
||||
document.defaultView
|
||||
.getComputedStyle(el, null)
|
||||
.getPropertyValue('display')
|
||||
.toLowerCase()
|
||||
|
Loading…
x
Reference in New Issue
Block a user