padefla / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE: Javascript error with IE only #381

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using timeline version 2.3.0 bundle.

Under firefox and safari i have no problems, but under Internet explorer 6 and 
8 (probably 7 too, but untested) I receive a javascript error.

The timeline seems to function fine on Internet Explorer even with this error 
occuring.

I have attached a screenshot from IE 8 show the error details and position.

As a quick fix I edited timeline_js/timeline-bundle.js to the following:

------- snip to line 2315 --------------

//-mt uncomment the line below to make the timeline work on ie 6 & 8
//if(A){
var C=A.isDuration||(A.durationEvent!=null&&!A.durationEvent);
var L=new Timeline.DefaultEventSource.Event({id:("id" in 
A)?A.id:undefined,start:E(A.start),end:E(A.end),latestStart:E(A.lat
L._obj=A;
L.getProperty=function(M){return this._obj[M];
//-mt uncomment the line below to make the timeline work on ie 6 & 8

----------------------------------------

A similar patch will need to be applied on un minified code.

Original issue reported on code.google.com by axscend on 21 Jul 2010 at 4:25

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:37