mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Bring back accidentally removed named constructor.
This commit is contained in:
parent
db2beba831
commit
016362daee
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue