Fixed string equals in Raster data URL for Node.js

This commit is contained in:
tranek 2013-05-24 16:41:02 -04:00
parent 269b93e888
commit cd7938e363

View file

@ -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: