timeglider / jquery_widget

Timeglider's JS Widget component. See README for details.
193 stars 41 forks source link

TG_Mediator coding error, v. 0.1.3 #46

Open wbclay opened 12 years ago

wbclay commented 12 years ago

This bug bites only if the user does not specify focus_date. In this case, an uncaught exception is raised due to no "match" method in function object getToday.

At TG_Mediator line 420:

tl.focus_date = $table.attr("focus_date") || TG_Date.getToday;

SHOULD READ

tl.focus_date = $table.attr("focus_date") || TG_Date.getToday();

Thanks for TimeGlider!

timeglider commented 12 years ago

Thanks! This is really helpful. Fixed in the dev version and will have it in the next .min version

On Sat, May 5, 2012 at 1:59 PM, wbclay < reply@reply.github.com

wrote:

This bug bites only if the user does not specify focus_date. In this case, an uncaught exception is raised due to no "match" method in function object getToday.

At TG_Mediator line 420:

tl.focus_date = $table.attr("focus_date") || TG_Date.getToday;

SHOULD READ

tl.focus_date = $table.attr("focus_date") || TG_Date.getToday();

Thanks for TimeGlider!


Reply to this email directly or view it on GitHub: https://github.com/timeglider/jquery_widget/issues/46