mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-15 17:29:52 -04: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
|
* @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:
|
||||||
|
|
Loading…
Reference in a new issue