mirror of
https://github.com/moodle/moodle.git
synced 2025-04-04 16:04:00 +02:00
Half of the times the normalise module is used is to get a single element. However, because jQuery elements can contain multiple elements the getList is always an array. Due to this in many ocasions we repeat the getList(VAR)[0] line instead of having a more readable getFirst method which only implies a couple of lines in the original code.