Improve exception when passing an invalid canvas.

This commit is contained in:
Jürg Lehni 2013-11-04 11:42:41 +01:00
parent 67d969ba56
commit 73fe0899ae

View file

@ -38,8 +38,8 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
var size = Size.read(arguments);
if (size.isZero())
throw new Error(
'Cannot create CanvasView with the provided arguments: '
+ arguments);
'Cannot create CanvasView with the provided argument: '
+ canvas);
canvas = CanvasProvider.getCanvas(size);
}
var ctx = this._context = canvas.getContext('2d');