From 12254f5fe83dc96924ebff332eb4fb52fdd7ade8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 26 Jul 2014 12:07:36 +0200 Subject: [PATCH] Fix two documentation errors in Raster. Closes #495 --- src/item/Raster.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index eca18c06..9f093f92 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -38,8 +38,8 @@ var Raster = Item.extend(/** @lends Raster# */{ * element to get the image from (either a DOM Image or a Canvas). * * @param {HTMLImageElement|Canvas|String} [source] the source of the raster - * @param {HTMLImageElement|Canvas|String} [position] the center position at - * which the raster item is placed. + * @param {Point} [position] the center position at which the raster item is + * placed. * * @example {@paperscript height=300} // Creating a raster using a url * var url = 'http://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png'; @@ -615,7 +615,6 @@ var Raster = Item.extend(/** @lends Raster# */{ /** * @param {ImageData} data * @param {Point} point - * @return {ImageData} */ setImageData: function(data /*, point */) { var point = Point.read(arguments, 1);