Bring back accidentally removed named constructor.

This commit is contained in:
Jürg Lehni 2016-01-13 02:13:30 +01:00
parent db2beba831
commit 016362daee

View file

@ -31,7 +31,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
* @name CanvasView#initialize * @name CanvasView#initialize
* @param {Size} size the size of the canvas to be created * @param {Size} size the size of the canvas to be created
*/ */
initialize: function(project, canvas) { initialize: function CanvasView(project, canvas) {
// Handle canvas argument // Handle canvas argument
if (!(canvas instanceof HTMLCanvasElement)) { if (!(canvas instanceof HTMLCanvasElement)) {
// See if the arguments describe the view size: // See if the arguments describe the view size: