Functions / clone
clone([parameters])
clone( )
clone(object parameters)

clone( )
return: clone of object
Code
<script type="text/javascript">	
	function start_1(idCanvas)	
	{	
		var myCircle=jc('#myCircle_1');
		myCircle.clone();
		myCircle.animate({x:'+=50',color:'#ff0000'});
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}	
	function onload_1(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.circle(100,120,50,true)
			.id('myCircle_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px"></canvas>
View
clone(object parameters)
return: clone of object
Code
<script type="text/javascript">	
	function start_2(idCanvas)	
	{	
		var myCircle=jc('#myCircle_2');
		myCircle.clone({x:'+=50',color:'#ff0000'});
	}
	function stop_2(idCanvas)
	{
		jc.clear(idCanvas);
		onload_2(idCanvas);
	}	
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.circle(100,120,50,true)
			.id('myCircle_2');
	}
</script>
<canvas id="canvas_2" width="250px" height="265px"></canvas>
View