js/ui/canvas.js
/**
	joCanvas
	========

	Simple canvas wrapper control.
*/
joCanvas
Simple canvas wrapper control.
joCanvas Simple canvas wrapper control .
function joCanvas(w, h) {
	this.canvas = joDOM.create("canvas");
	if (this.canvas)
		this.ctx = this.canvas.getContext("2d");
	this.ctx.imageSmoothingEnabled = false;
	this.ctx.mozImageSmoothingEnabled = false;
	this.ctx.oImageSmoothingEnabled = false;
	this.ctx.webkitImageSmoothingEnabled = false;
	if (w || h)
		this.setSize(w, h);
}
function joCanvas ( w , h ) { this . canvas = joDOM . create ( "canvas" ) ; if ( this . canvas ) this . ctx = this . canvas . getContext ( "2d" ) ; this . ctx . imageSmoothingEnabled = false ; this . ctx . mozImageSmoothingEnabled = false ; this . ctx . oImageSmoothingEnabled = false ; this . ctx . webkitImageSmoothingEnabled = false ; if ( w || h ) this . setSize ( w , h ) ; }
joCanvas
Simple canvas wrapper control.
joCanvas Simple canvas wrapper control .