File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 278278 } ,
279279 //
280280 bindPan : function ( ) {
281- this . unbindPan ( ) ;
282281 this . $chartContainer . css ( 'overflow' , 'hidden' ) ;
283282 this . $chart . on ( 'mousedown touchstart' , this . panStartHandler ) ;
284283 $ ( document ) . on ( 'mouseup touchend' , { 'chart' : this . $chart } , this . panEndHandler ) ;
326325 } ,
327326 //
328327 bindZoom : function ( ) {
329- this . unbindZoom ( ) ;
330328 this . $chartContainer . on ( 'wheel' , { 'oc' : this } , this . zoomWheelHandler ) ;
331329 this . $chartContainer . on ( 'touchstart' , { 'oc' : this } , this . zoomStartHandler ) ;
332330 $ ( document ) . on ( 'touchmove' , { 'oc' : this } , this . zoomingHandler ) ;
386384 attachRel : function ( data , flags ) {
387385 var that = this ;
388386 data . relationship = flags + ( data . children && data . children . length > 0 ? 1 : 0 ) ;
389- if ( this . options ?. compact ?. constructor === Function ) {
390- data . compact = this . options . compact ( data ) ;
387+ if ( this . options ?. compact ?. constructor === Function && this . options . compact ( data ) ) {
388+ data . compact = true ;
391389 }
392390 if ( data . children ) {
393391 data . children . forEach ( function ( item ) {
You can’t perform that action at this time.
0 commit comments