It basically combines two arrays. Take for example this code:
var a = [1,2,3]; var b = [4,5,6]; var c = [a, b].flatten(); alert(c);
Arrays [1,2,3] and [4,5,6] combined (or "flattened") into one array, 1,2,3,4,5,6 .
In your code:
[note, $H(options.text).getKeys()].flatten()
note (possibly another array), and all getKeys() returns are smoothed into a single array. Then through each element a function is executed.
Update:
The $ H function is a utility function in Mootools; this is a shortcut to Hash ().
Mike christensen
source share