Functions / end
end([n])
end( )
end(int n)

end( )
return: group
End all filtering operations and return the set of matched elements to its first state.
Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(50,50,50,1);
		jc.circle(100,50,50,1);
		jc.circle(100,100,50);
		jc.rect(100,120,50,60,1);		
	}
	function start_1(idCanvas)	
	{
		jc({canvas:idCanvas})
			.find({attrs:{
				proto:'circle',
				fill:{val:0,rel:'>'}
			}})
				.color('#ff0000')
			.end()
				.translate(30,30);
	}
	function stop_1(idCanvas)	
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
end(int n)
return: group
End the n filtering operations in the current chain and return the set of matched elements to its n-previous state.
Code
<script type="text/javascript">	
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(50,50,50,1);
		jc.circle(100,50,50,1);
		jc.circle(100,100,50);
		jc.rect(100,120,50,60,1);		
	}
	function start_2(idCanvas)	
	{
		jc({canvas:idCanvas})
			.find({attrs:{
				proto:'circle',
				fill:{val:0,rel:'>'}
			}})
				.color('#ff0000')
			.find({fns:[{
				fn:'attr',
				rel:'<',
				val: 60,
				args:['x']
			}]})
				.color('#00ff00')
			.end(1)
				.translate(30,30);
	}
	function stop_2(idCanvas)	
	{
		jc.clear(idCanvas);
		onload_2(idCanvas);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View