Tiny patch for a Javascript bug where we're setting the "ready" attribute on $("#" + listener_key), but then trying to read it from $("#" + listener_value), which only works in the common case where key and value are the same.
Tiny patch for a Javascript bug where we're setting the "ready" attribute
on $("#" + listener_key), but then trying to read it from $("#" +
listener_value), which only works in the common case where key and value
are the same.

Also, it's not a great idea to look for an element called $("#" +
listener_value) in the first place, in case the value is something that
contains periods or other jQuery-buggering characters.

rmg/magic_grid,rmg/magic_grid