Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support for AMD Loaders #7
I saw in http://bugs.cometd.org/browse/COMETD-336 that there is plan to add AMD support. I thought I would put together a patch that enables AMD support while keeping backward compatibility.
I have also strengthened the dojo provide check to make it more robust. That path should only be called when Dojo is being run in sync mode.
The AMD define call is only made if the AMD check passes :
if (typeof define === "function" && define.amd)
I have also added AMD support to all the extensions too.
I should note that when I forked the cometd repo one of the tests was failing :
I think it might be due to the fix for COMETD-343 as all the tests were passing about a week ago.
My changes do not appear to break anything else