jQuery 1.4 + IE7 + flot 0.6 + jsonp 1.0.4

jQuery 1.4 + IE7 + flot 0.6 + jsonp 1.0.4

  Hi - I've found this strange one using flot and jsonp. I get an error with JQuery 1.4 that I do not get with 1.3.2. The error occurs in IE7, but not in Firefox.

I'm using jsonp (http://jquery-jsonp.googlecode.com) to get graph data and flot (http://code.google.com/p/flot/) to render that data.

In IE7, I have a scenario where this works OK

    
  1.  $.plot($("#chartDiv"),
  2. [{"lines":{"show":true},"data":[[1259625600000,5305],[1259712000000,6539]]}]  
  3. );

But retrieving that same json data via ajax call cause a script error. I get an 
error on line 465 of http://code.jquery.com/jquery-latest.js  
(Unexpected call to method or property access)

       
  1.  // Not own constructor property must be Object
  2. if ( obj.constructor
  3. && !hasOwnProperty.call(obj, "constructor")
  4. && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) 
  5. {
  6. return false;
  7. }

This works fine in Firefox on both 1.3.2 and 1.4 versions of jQuery. I
have example code below (& attached) to reproduce (you'll need to download flot to run it)

Should I open this as a bug in jQuery 1.4 ? Or could it be something in Flot
or jsonp that is just exposed by 1.4 release of jQuery.


       
  1.  <html>
  2. <head>
  3. <script language="javascript" type="text/javascript" src="./flot/excanvas.js"></script>
  4. <!-- <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> -->
  5. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" >
  6. </script><script type="text/javascript" src="http://jquery-jsonp.googlecode.com/files/jquery.jsonp-1.0.4.min.js"></script>
  7. <script type="text/javascript" src="./flot_0.6/jquery.flot.js" ></script>
  8. <script type="text/javascript">
  9. $(document).ready(function(){  
  10. //alert("this works on IE 7");  
  11. $.plot($("#chartDiv"),  
  12. [{"lines":{"show":true},"data":[[1259625600000,5305],[1259712000000,6539]]}]  
  13. );  

  14. url = "http://thesullies.com/jquery_1.4_flot_ie7_error.json";  
  15. $.jsonp( {  
  16. url : url,  
  17. timeout : 10000,  
  18. success : function(data, textStatus) {
  19. //alert("this will fail on IE 7 (with jquery 1.4)");  
  20. $.plot($("#chartDiv"), data);  
  21. },  
  22. complete : function(xOptions, textStatus) {  
  23. if (textStatus == "error" || textStatus == "timeout") 
  24. alert("Unable to retrieve URL:"+url+", error = "+textStatus);
  25. }  
  26. });  
  27. });</script>
  28. </head>
  29. <body>
  30. <div id="chartDiv" style="width:600px;height:300px;"></div>
  31. </body></html>