From cd7938e363c3491038b0e4b3615513a2ae719ab0 Mon Sep 17 00:00:00 2001 From: tranek Date: Fri, 24 May 2013 16:41:02 -0400 Subject: [PATCH] Fixed string equals in Raster data URL for Node.js --- src/item/Raster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index 1334137a..fa8926d2 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -301,7 +301,7 @@ var Raster = this.Raster = Item.extend(/** @lends Raster# */{ // If we're running on the server and it's a string, // check if it is a data URL var protocol = src.split('/')[0]; - if (protocol && protocol.equals("data:image")) { + if (protocol && protocol == "data:image") { image.src = src; } else { // load it from disk: