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 278
278
} ,
279
279
//
280
280
bindPan : function ( ) {
281
- this . unbindPan ( ) ;
282
281
this . $chartContainer . css ( 'overflow' , 'hidden' ) ;
283
282
this . $chart . on ( 'mousedown touchstart' , this . panStartHandler ) ;
284
283
$ ( document ) . on ( 'mouseup touchend' , { 'chart' : this . $chart } , this . panEndHandler ) ;
326
325
} ,
327
326
//
328
327
bindZoom : function ( ) {
329
- this . unbindZoom ( ) ;
330
328
this . $chartContainer . on ( 'wheel' , { 'oc' : this } , this . zoomWheelHandler ) ;
331
329
this . $chartContainer . on ( 'touchstart' , { 'oc' : this } , this . zoomStartHandler ) ;
332
330
$ ( document ) . on ( 'touchmove' , { 'oc' : this } , this . zoomingHandler ) ;
386
384
attachRel : function ( data , flags ) {
387
385
var that = this ;
388
386
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 ;
391
389
}
392
390
if ( data . children ) {
393
391
data . children . forEach ( function ( item ) {
You can’t perform that action at this time.
0 commit comments