mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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
|
||||
: null;
|
||||
if (object && object !== Item.NO_INSERT) {
|
||||
if (object.getContent || object.naturalHeight != null) {
|
||||
if (object.getContext || object.naturalHeight != null) {
|
||||
image = object;
|
||||
} else if (object) {
|
||||
// See if the arguments describe the raster size:
|
||||
|
|
Loading…
Reference in a new issue