cytoscape
Advanced tools
Comparing version 2.7.16 to 2.7.17
/*! | ||
Cytoscape.js 2.7.16 (MIT licensed) | ||
Cytoscape.js 2.7.17 (MIT licensed) | ||
@@ -6,0 +6,0 @@ Copyright (c) The Cytoscape Consortium |
{ | ||
"name": "cytoscape", | ||
"version": "2.7.16", | ||
"version": "2.7.17", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Graph theory (a.k.a. network) library for analysis and visualisation", |
'use strict'; | ||
var window = require('../../../window'); | ||
var document = window ? window.document : null; | ||
var is = require( '../../../is' ); | ||
@@ -34,3 +36,5 @@ var util = require( '../../../util' ); | ||
window.addEventListener( 'test', null, opts ); | ||
} catch( err ){} | ||
} catch( err ){ | ||
// just consume the error | ||
} | ||
@@ -37,0 +41,0 @@ r.supportsPassiveEvents = supportsPassive; |
@@ -9,18 +9,24 @@ 'use strict'; | ||
var raf = !window ? function( fn ){ | ||
if( fn ){ | ||
setTimeout( function(){ | ||
fn( pnow() ); | ||
}, 1000 / 60 ); | ||
var pnow = performance && performance.now ? function(){ return performance.now(); } : function(){ return Date.now(); }; | ||
var raf = (function(){ | ||
if( window ) { | ||
if( window.requestAnimationFrame ){ | ||
return function( fn ){ window.requestAnimationFrame( fn ); }; | ||
} else if( window.mozRequestAnimationFrame ){ | ||
return function( fn ){ window.mozRequestAnimationFrame( fn ); }; | ||
} else if( window.webkitRequestAnimationFrame ){ | ||
return function( fn ){ window.webkitRequestAnimationFrame( fn ); }; | ||
} else if( window.msRequestAnimationFrame ){ | ||
return function( fn ){ window.msRequestAnimationFrame( fn ); }; | ||
} | ||
} | ||
} : (function(){ | ||
if( window.requestAnimationFrame ){ | ||
return function( fn ){ window.requestAnimationFrame( fn ); }; | ||
} else if( window.mozRequestAnimationFrame ){ | ||
return function( fn ){ window.mozRequestAnimationFrame( fn ); }; | ||
} else if( window.webkitRequestAnimationFrame ){ | ||
return function( fn ){ window.webkitRequestAnimationFrame( fn ); }; | ||
} else if( window.msRequestAnimationFrame ){ | ||
return function( fn ){ window.msRequestAnimationFrame( fn ); }; | ||
} | ||
return function( fn ){ | ||
if( fn ){ | ||
setTimeout( function(){ | ||
fn( pnow() ); | ||
}, 1000 / 60 ); | ||
} | ||
}; | ||
})(); | ||
@@ -32,4 +38,2 @@ | ||
var pnow = performance && performance.now ? function(){ return performance.now(); } : function(){ return Date.now(); }; | ||
util.performanceNow = pnow; | ||
@@ -36,0 +40,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = "2.7.16"; | ||
module.exports = "2.7.17"; |
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
4325159
43752