don't create obj for transition if not transitioning for mem perf
don't create obj for transition if not transitioning for mem perf

rlugojr/cytoscape.js,soomin-maeng/cytoscape.js,rlugojr/cytoscape.js,soomin-maeng/cytoscape.js