in documentation we have information tha callback parameter for a function window.set_listener cab be nil http://www.defold.com/ref/window/#window.set_listener:callback
But when I try to set nil (for remove a callback) I recieve next error:
ERROR:SCRIPT: collections/game/ui/in_game_ui.gui_script:151: bad argument #1 to ‘set_listener’ (function expected, got nil)
I don’t know, maybe it is mistake in documentation but then how to delete a callback?