mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
ff5f669cf8
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.