ShiboBrady / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Undefined reference error with example when loading jquery.js and jquery.flot.js locally #599

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running the timeseries example here ( 
http://people.iola.dk/olau/flot/examples/time.html ) with flot 0.7 off the 
local filesystem (this cloud thing seems like a fad), I got the following error:

Uncaught TypeError: Cannot call method 'shutdown' of undefined

At first, it seemed to be in jquery, but after updating jquery, I traced it 
here:

http://code.google.com/p/flot/source/browse/trunk/jquery.flot.js#776

If I put a guard there (see attached patch), the example seems to work fine.

I haven't tried hosting the example myself, but it runs fine in my browser off 
the linked site.

Original issue reported on code.google.com by m.sakre...@gmail.com on 8 Sep 2011 at 11:22

Attachments:

GoogleCodeExporter commented 8 years ago
I'm also having this issue. Although in a very weird circumstance.
I can run the page off localhost on my Windows 7 Netbook using Google Chrome, 
however when I save the 'complete' page in the browser and try running it from 
my computer or from Dropbox (so hosted online or via file) I get the same error 
as above.

"Uncaught TypeError: Cannot call method 'shutdown' of undefined"

The thing is, all the content is there and everything else works fine.

Original comment by Kubler...@gmail.com on 5 Feb 2012 at 5:31

GoogleCodeExporter commented 8 years ago
I am also getting this error when I delete and old plot and it tries to reuse 
it. The patch worked perfectly 

Original comment by GeorgePa...@gmail.com on 24 Feb 2012 at 2:18

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 7:26

GoogleCodeExporter commented 8 years ago
I got this error too, but after I change all

   $(".popover")

into

   $("#trig").data("popover").$tip

the problem disappears. I think this might be accessing the wrong $(".popover") 
when multiple popover instance exists.

Original comment by zikaizhang@gmail.com on 14 Jul 2012 at 9:23