From d0e553412c8d8532c374ae8c1fc7bd72fe86bb7e Mon Sep 17 00:00:00 2001 From: Matt Claypotch Date: Thu, 27 Sep 2012 14:58:23 -0700 Subject: [PATCH] don't draw bg gradients if hue is 0 --- media/js/mkt/home.js | 1 + 1 file changed, 1 insertion(+) diff --git a/media/js/mkt/home.js b/media/js/mkt/home.js index 86dc1aa811..d373172bea 100644 --- a/media/js/mkt/home.js +++ b/media/js/mkt/home.js @@ -36,6 +36,7 @@ var tile = el.querySelector('[data-hue]'); if (!tile) return; var hue = tile.getAttribute('data-hue'); + if (!hue) return; var canvas = el.querySelector('canvas') || document.createElement('canvas'); var cs = window.getComputedStyle(el, null); var width = parseInt(cs.getPropertyValue('width'), 10);