mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Fix small bug in Raster constructor.
This commit is contained in:
parent
2d9b0b2e8e
commit
d8b0da9103
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
|||
this.base(point !== undefined && Point.read(arguments, 1));
|
||||
// If we can handle setting properties through object literal, we're all
|
||||
// set. Otherwise we need to check the type of object:
|
||||
if (!this._set(object)) {
|
||||
if (object && !this._set(object)) {
|
||||
if (object.getContext) {
|
||||
this.setCanvas(object);
|
||||
} else if (typeof object === 'string') {
|
||||
|
|
Loading…
Reference in a new issue