mixpanel-js-utils
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -40,8 +40,8 @@ 'use strict'; | ||
var nearestInteractiveElement = function nearestInteractiveElement(element, cache) { | ||
/*** Don't mess with this stuff without testing the changes on IE8 first, it's very brittle ***/ | ||
if (cache && cache[element] && cache[element].element === element) { | ||
return cache[element].closest; | ||
} | ||
if (['html', 'head'].indexOf(element.tagName.toLowerCase()) > -1) { | ||
// can't call css on these | ||
var tagName = element.tagName.toLowerCase(); | ||
if (tagName === 'html' || tagName === 'head') { | ||
return null; | ||
@@ -48,0 +48,0 @@ } |
@@ -38,8 +38,8 @@ var elementHasOwnHandler = function elementHasOwnHandler(element) { | ||
var nearestInteractiveElement = function nearestInteractiveElement(element, cache) { | ||
/*** Don't mess with this stuff without testing the changes on IE8 first, it's very brittle ***/ | ||
if (cache && cache[element] && cache[element].element === element) { | ||
return cache[element].closest; | ||
} | ||
if (['html', 'head'].indexOf(element.tagName.toLowerCase()) > -1) { | ||
// can't call css on these | ||
var tagName = element.tagName.toLowerCase(); | ||
if (tagName === 'html' || tagName === 'head') { | ||
return null; | ||
@@ -46,0 +46,0 @@ } |
{ | ||
"name": "mixpanel-js-utils", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Javascript utilities for use across Mixpanel products", | ||
@@ -5,0 +5,0 @@ "main": "build/index.cjs.js", |
@@ -45,7 +45,8 @@ var elementHasOwnHandler = function (element) { | ||
var nearestInteractiveElement = function(element, cache) { | ||
/*** Don't mess with this stuff without testing the changes on IE8 first, it's very brittle ***/ | ||
if (cache && cache[element] && cache[element].element === element) { | ||
return cache[element].closest; | ||
} | ||
if (['html', 'head'].indexOf(element.tagName.toLowerCase()) > -1) { // can't call css on these | ||
var tagName = element.tagName.toLowerCase(); | ||
if (tagName === 'html' || tagName === 'head') { | ||
return null; | ||
@@ -52,0 +53,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44053100
484