Functions / id
id(id)
id( )
id(string id)

id( )
return: id of object
Code
<script type="text/javascript">	
	function start_1(idCanvas)	
	{	
		alert(jc('#myCircle_1').id());
	}
	function onload_1(idCanvas)
	{
		jc.start(idCanvas);
		jc.circle(100,120,50,true)
			.id('myCircle_1');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px"></canvas>
View
id(string id)
return: object
Function to set id of object
Code
<script type="text/javascript">	
	function start_2(idCanvas)	
	{	
		alert(typeof jc('#myCircle_2').id('myCircle_2'));
	}
	function stop_2(idCanvas)
	{
		jc('#myCircle_2')
			.color('rgba(24,99,255,0.5)');
		jc.start(idCanvas);
	}	
	function onload_2(idCanvas)
	{
		jc.start(idCanvas);
		jc.circle(100,120,50,true)
			.id('myCircle_2');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px"></canvas>
View