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