Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

Support node argument to please.overlay.new_element. #263

Closed wijnen closed 7 years ago

wijnen commented 7 years ago

This implements #262. I don't select the functionality by number of arguments, because it should be possible to pass an id without passing classes. So instead, I select based on the argument type: a string is treated as an id, anything else as a node. (If it's not a node I expect bind_to_node to complain, but I didn't check if it does; anyway, if such a check is required, it should be in that function, not in new_element.)