function dragStopMouse(event){
  dragging = false;
  if(attribute['style'] == bezier){
    points.length = 0;
  }
  else{
    context.beginPath();
  }
}
//stops the drawing when the mouse is lifted
stops the drawing when the mouse is lifted
stops the drawing when the mouse is lifted
function dragStopMouse(event){
  dragging = false;
  if(attribute['style'] == bezier){
    points.length = 0;
  }
  else{
    context.beginPath();
  }
}
function dragStopMouse ( event ) { dragging = false ; if ( attribute [ 'style' ] == bezier ) { points . length = 0 ; } else { context . beginPath ( ) ; } }
stops the drawing when the mouse is lifted
stops the drawing when the mouse is lifted