From 016362daee4b5d79522476ebf6e55d5526e5aee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 13 Jan 2016 02:13:30 +0100 Subject: [PATCH] Bring back accidentally removed named constructor. --- src/view/CanvasView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/CanvasView.js b/src/view/CanvasView.js index 886a0e55..57e28f3b 100644 --- a/src/view/CanvasView.js +++ b/src/view/CanvasView.js @@ -31,7 +31,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{ * @name CanvasView#initialize * @param {Size} size the size of the canvas to be created */ - initialize: function(project, canvas) { + initialize: function CanvasView(project, canvas) { // Handle canvas argument if (!(canvas instanceof HTMLCanvasElement)) { // See if the arguments describe the view size: