@@ -516,7 +516,7 @@ Code.loadDemoArea = function () {
516516
517517 } ) ;
518518
519- resizeLeftBar . addEventListener ( 'mousedown' , function ( e ) {
519+ resizeLeftBar && resizeLeftBar . addEventListener ( 'mousedown' , function ( e ) {
520520
521521 var cover = document . createElement ( 'div' ) ;
522522 var frame = document . getElementById ( 'demo-frame' ) ;
@@ -551,7 +551,7 @@ Code.loadDemoArea = function () {
551551
552552 } ) ;
553553
554- resizeRightBar . addEventListener ( 'mousedown' , function ( e ) {
554+ resizeRightBar && resizeRightBar . addEventListener ( 'mousedown' , function ( e ) {
555555
556556 var cover = document . createElement ( 'div' ) ;
557557 var frame = document . getElementById ( 'demo-frame' ) ;
@@ -604,7 +604,7 @@ Code.loadDemoArea = function () {
604604
605605 } ) ;
606606
607- resizeBottomBar . addEventListener ( 'mousedown' , function ( e ) {
607+ resizeBottomBar && resizeBottomBar . addEventListener ( 'mousedown' , function ( e ) {
608608
609609 var cover = document . createElement ( 'div' ) ;
610610 var frame = document . getElementById ( 'demo-frame' ) ;
@@ -645,7 +645,7 @@ Code.loadDemoArea = function () {
645645
646646 } ) ;
647647
648- resizeTopBar . addEventListener ( 'mousedown' , function ( e ) {
648+ resizeBottomBar && resizeTopBar . addEventListener ( 'mousedown' , function ( e ) {
649649
650650 var cover = document . createElement ( 'div' ) ;
651651 var frame = document . getElementById ( 'demo-frame' ) ;
0 commit comments