mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Fix comment.
This commit is contained in:
parent
96b886ae8d
commit
d2b43b043a
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
|||
*/
|
||||
toDataURL: function() {
|
||||
// See if the linked image is base64 encoded already, if so reuse it,
|
||||
// otherwise try using canvas.toDataUrl()
|
||||
// otherwise try using canvas.toDataURL()
|
||||
var src = this._image && this._image.src;
|
||||
if (/^data:/.test(src))
|
||||
return src;
|
||||
|
|
Loading…
Reference in a new issue