Functions / dblclick
dblclick(fn)
dblclick( )
dblclick(function fn)

Its one of the functions that works with events. For correct work of such functions it is necessary to specify at canvas initialization frames per second - fps: jc.start (idCanvas, fps).
dblclick( )
return: object
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		jc('#myCircle_1').dblclick();
	}
	function stop_1(idCanvas)
	{
		jc('#myCircle_1')
			.color('#ff0000');
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_1')
			.dblclick(function(){
				this.color('#00ff00');
			});
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
dblclick(function fn)
return: object
The dblclick event is sent to an object when the mouse pointer is over the object, and the mouse button is pressed and released twice. Fn is a function to execute each time the event is triggered.
Code
<script type="text/javascript">	
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		var text=jc.text("",10,10);
		jc.circle(100,120,50,1)
			.dblclick(function(point){
				this.color('#ff0000');
				text.string('x='+point.x+', y='+point.y);
			});
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View