Details
Description
Sorry, this one is quite big. I don't know why I did not notice it before.
We really should not be adding our code to the YAHOO library namespace. I would change
YAHOO.cats.container -> question_bank
YAHOO.quiz.container -> quiz_editor
or something like that.
<div id="module" is not very descriptive. Wouldn't something like id="questionbankcontents" be better?
Do you really want to initialise on load, would onDomReady work better?
Changed it to OnDOMReady.
http://www.zachleat.com/web/2007/08/09/yui-code-review-yahoonamespace/
From this I understand that the YAHOO namespace is indeed intended for other uses than just Yahoo!'s. However, I am not sure if that code applies otherwise to be used in a namespace.
So I am not sure what exactly to fix about the namespaces. If you still think it is necessary, please fix it? Thanks.