cytoscape
Advanced tools
Comparing version 3.5.7 to 3.5.8
{ | ||
"build/cytoscape.umd.js": { | ||
"bundled": 903730, | ||
"minified": 333306, | ||
"gzipped": 103604 | ||
"bundled": 899986, | ||
"minified": 333283, | ||
"gzipped": 103715 | ||
}, | ||
"build/cytoscape.cjs.js": { | ||
"bundled": 832342, | ||
"minified": 353485, | ||
"gzipped": 106377 | ||
"bundled": 829196, | ||
"minified": 350557, | ||
"gzipped": 105769 | ||
}, | ||
"build/cytoscape.esm.js": { | ||
"bundled": 832169, | ||
"minified": 353342, | ||
"gzipped": 106338, | ||
"bundled": 829023, | ||
"minified": 350414, | ||
"gzipped": 105732, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 327855, | ||
"code": 327979, | ||
"import_statements": 51 | ||
}, | ||
"webpack": { | ||
"code": 329863 | ||
"code": 329846 | ||
} | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "cytoscape", | ||
"version": "3.5.7", | ||
"version": "3.5.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation", |
@@ -34,4 +34,5 @@ import * as util from './util'; | ||
let defaultsKeys = Object.keys( defaults ); | ||
let emptyOpts = {}; | ||
function Emitter( opts, context ){ | ||
function Emitter( opts = emptyOpts, context ){ | ||
// micro-optimisation vs Object.assign() -- reduces Element instantiation time | ||
@@ -158,3 +159,3 @@ for( let i = 0; i < defaultsKeys.length; i++ ){ | ||
( listener.type === type ) && | ||
( !namespace || listener.namespace === namespace ) && | ||
( (!namespace && listener.namespace !== '.*') || listener.namespace === namespace ) && | ||
( !qualifier || self.qualifierCompare( listener.qualifier, qualifier ) ) && | ||
@@ -161,0 +162,0 @@ ( !callback || listener.callback === callback ) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
3753928
101907