Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mixpanel-js-utils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel-js-utils - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

6

build/index.cjs.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc