Skip to main content

Timeline for Training diary calendar

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jul 30, 2011 at 17:06 comment added codecowboy my bad again - just realised I can alert JSLint to an additional global declaration and you had already done this for jquery
Jul 30, 2011 at 16:48 comment added codecowboy yep - my bad. I realised this after I read through your answer again and the link on closures. I've updated my question with the latest code. JSLint complains about ROOT_URL - this is defined in another file.
Jul 30, 2011 at 12:21 comment added user185 This is shown in second example: this.trainingDiary = trainingDiary; A classic alternative would be to assign to window, which only works in a browser environment: window.trainingDiary = trainingDiary;
Jul 30, 2011 at 5:10 comment added codecowboy Wow - thanks so much for such a comprehensive answer. I will take a look into this approach and report back. Can you explain how one would '[assign it to] global this'?
Jul 28, 2011 at 13:09 history answered user185 CC BY-SA 3.0