src/scripts/containers/CanvasContainer.js
/**
         * @func handleCanvasCreated
         * @desc Listens for the canvas:create event to do some bootstrapping between
         * the canvas and selection module instances
         * @listens canvas:created
         */
@func handleCanvasCreated
@desc Listens for the canvas:create event to do some bootstrapping between
the canvas and selection module instances
@listens canvas:created
@func handleCanvasCreated @desc Listens for the canvas : create event to do some bootstrapping between the canvas and selection module instances @listens canvas : created
handleCanvasCreated () {
            const { mediator } = this;
            const canvasWin = mediator.get('canvas:window');
            const canvasDoc = mediator.get('canvas:document');
            const canvasBody = mediator.get('canvas:body');
            mediator.exec('selection:set:contextWindow', canvasWin);
            mediator.exec('selection:set:contextDocument', canvasDoc);
            mediator.exec('selection:set:el', canvasBody);
        }
handleCanvasCreated ( ) { const { mediator } = this ; const canvasWin = mediator . get ( 'canvas:window' ) ; const canvasDoc = mediator . get ( 'canvas:document' ) ; const canvasBody = mediator . get ( 'canvas:body' ) ; mediator . exec ( 'selection:set:contextWindow' , canvasWin ) ; mediator . exec ( 'selection:set:contextDocument' , canvasDoc ) ; mediator . exec ( 'selection:set:el' , canvasBody ) ; }
@func handleCanvasCreated
 @desc Listens for the canvas:create event to do some bootstrapping between
 the canvas and selection module instances
 @listens canvas:created
@func handleCanvasCreated @desc Listens for the canvas : create event to do some bootstrapping between the canvas and selection module instances @listens canvas : created