New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cytoscape-cxtmenu

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-cxtmenu - npm Package Compare versions

Comparing version 2.7.0 to 2.7.1

20

cytoscape-cxtmenu.js

@@ -299,16 +299,22 @@ /*!

on: function(events, selector, fn){
var _fn = fn;
if( selector === 'core'){
_fn = function( e ){
if( e.cyTarget === cy ){ // only if event target is directly core
return fn.apply( this, [ e ] );
}
};
}
data.handlers.push({
events: events,
selector: selector,
fn: fn
fn: _fn
});
if( selector === 'core' ){
cy.on(events, function( e ){
if( e.cyTarget === cy ){ // only if event target is directly core
return fn.apply( this, [ e ] );
}
});
cy.on(events, _fn);
} else {
cy.on(events, selector, fn);
cy.on(events, selector, _fn);
}

@@ -315,0 +321,0 @@

{
"name": "cytoscape-cxtmenu",
"version": "2.7.0",
"version": "2.7.1",
"description": "A context menu for Cytoscape.js",

@@ -5,0 +5,0 @@ "main": "cytoscape-cxtmenu.js",

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