Menu

#376 Change calendar.setup to return reference

open
nobody
None
5
2008-10-14
2008-10-14
Anonymous
No

I modified my calendar-setup.js on line 149 from:

return false;

to:

return cal;

So this way I can reference my calendar created by setup method, like this:

referenceToMyCal = Calendar.setup( ...

I suggest this change on official version, because return false just does nothing, and return the reference don't harm the rest of script.

Discussion


Log in to post a comment.