padefla / simile-widgets

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

new Timeline.DefaultEventSource.Event() should accept string type of start,end field. #333

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I tried to integrate SIMILE timeline into wicket, and blocked by sf.JSON
package's restriction: date converted from JSON package can only be string
presentation. It means I can only build javascript event object in such form:

{start : "Jul 10 2009 01:00:00GMT+0000" ... } instead of 
{start : new Date("Jul 10 2009 01:00:00GMT+0000") ... }

So I need a new construct for string type of date format, and I wrote one
in attach file.

Please view the source of defaultEvent.js line 5~8, there is the only place
where I changed. If it is useable please accept this modification.

Original issue reported on code.google.com by neversay...@gmail.com on 20 Nov 2009 at 8:44

Attachments:

GoogleCodeExporter commented 8 years ago

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