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

  • Participants
  • Parent commits d4ea8fb

Comments (0)

Files changed (1)

File 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);