- Optimization fix: Properly run code conditionally on browser check;
fixes #312 (@ianli-sc)
This commit is contained in:
@@ -1226,7 +1226,7 @@ const getIntersectionList = this.getIntersectionList = function (rect) {
|
||||
}
|
||||
|
||||
let resultList = null;
|
||||
if (!isIE) {
|
||||
if (!isIE()) {
|
||||
if (typeof svgroot.getIntersectionList === 'function') {
|
||||
// Offset the bbox of the rubber box by the offset of the svgcontent element.
|
||||
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
|
||||
|
||||
@@ -14764,7 +14764,7 @@
|
||||
|
||||
var resultList = null;
|
||||
|
||||
if (!isIE) {
|
||||
if (!isIE()) {
|
||||
if (typeof svgroot.getIntersectionList === 'function') {
|
||||
// Offset the bbox of the rubber box by the offset of the svgcontent element.
|
||||
rubberBBox.x += parseInt(svgcontent.getAttribute('x'));
|
||||
|
||||
Reference in New Issue
Block a user