ChiperSoft/Kalendae — pull request #8 by Integralist (2012-03-09 17:01:38+00:00)
Title: Converted to AMD using RequireJs

Hi there,

I had first spent the best part of a day trying to get this script to work in `IE7`, but after fixing the first few issues I soon discovered the main reason as to the lack of `IE7` support which was that `IE7` has a bug where it chokes on complicated elements created via DOM methods and so the calendar elements couldn't be styled with CSS.

I then moved onto getting this converted into an AMD compatible script and spent around 5hrs on splitting up each section into individual modules only to to find that because of the way this code was written there were never ending scope issues and it was getting almost impossible to work around.

So, I took the easy route and just made it a basic AMD wrapper (mainly so we could use this script alongside an existing project which is already AMD based), but I thought I would send you a pull request anyway so you could maybe create an 'AMD' branch which some of your users might find useful (I know there was an issue raised about making it AMD compatible so this may or may not help those interested in AMD).

I've included a build script and executed that build script so you have a `project-build` folder there with minified version of the script.

Do as you will with the code, ignore it or use it :-)

Kind regards,
Mark