added assert statement to detect if img is undefined

This commit is contained in:
andygup 2014-03-31 18:09:35 -06:00
parent b9b5b550ce
commit fd91127b2d

View File

@ -91,6 +91,8 @@ define([
var img = query("img[src="+tileid+"]")[0];
var imgURL;
console.assert(typeof img != "undefined","undefined image detected");
if( success )
{
img.style.borderColor = "blue";