mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix new Raster(HTMLCanvasElement) (#1745)
Fix a typo in object.getContext (was object.getContent) accessor to properly identify a canvas
This commit is contained in:
parent
2d1856322c
commit
c73e08a481
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ var Raster = Item.extend(/** @lends Raster# */{
|
||||||
? source
|
? source
|
||||||
: null;
|
: null;
|
||||||
if (object && object !== Item.NO_INSERT) {
|
if (object && object !== Item.NO_INSERT) {
|
||||||
if (object.getContent || object.naturalHeight != null) {
|
if (object.getContext || object.naturalHeight != null) {
|
||||||
image = object;
|
image = object;
|
||||||
} else if (object) {
|
} else if (object) {
|
||||||
// See if the arguments describe the raster size:
|
// See if the arguments describe the raster size:
|
||||||
|
|
Loading…
Reference in a new issue