Re: [Simile-Widgets] Detecting wether timelines has been loaded

2012-09-26 Thread David Karger
Careful, note that the timeline object gets defined when timeline _begins_ to load; using this heuristic might lead you to invoke timeline before it _finishes_ loading the various supporting scripts. On 9/25/2012 7:54 PM, Jeremy Boggs wrote: On Sep 25, 2012, at 7:31 PM, Jeff Roehl wrote: In

Re: [Simile-Widgets] Detecting wether timelines has been loaded

2012-09-25 Thread Michael Nosal
if (window.Timeline === undefined) { console.log(Timeline not loaded) } else { console.log(Timeline.version = + Timeline.version) } On Sep 25, 2012, at 7:31 PM, Jeff Roehl wrote: In jQuery, I can detect whether jQuery has been loaded and what version is running with: if

Re: [Simile-Widgets] Detecting wether timelines has been loaded

2012-09-25 Thread Jeremy Boggs
On Sep 25, 2012, at 7:31 PM, Jeff Roehl wrote: In jQuery, I can detect whether jQuery has been loaded and what version is running with: if (window.jQuery === undefined || window.jQuery.fn.jquery !== '1.8.1') Is there something similar I can do with Simile Timelines? You can check to see