Commits

Shaun Clowes committed 8548c7f

Small fix to jqplotToImage, the for (x in x) syntax does not iterate well over jQuery objects which are not actually arrays

Comments (0)

Files changed (1)

src/jqplot.toImage.js

 
         var temptop, templeft, tempbottom, tempright;
 
-        for (var i in clses) {
+        for (var i = 0; i < clses.length; i++) {
             $(this).find('.'+clses[i]).each(function() {
                 temptop = $(this).offset().top - plottop;
                 templeft = $(this).offset().left - plotleft;
         }
     };
     
-})(jQuery);
+})(jQuery);