forked from joejulian/gio
07802569f7
Currently, the redraw is called inside js.FuncOf. That PR moves the redraw to the main function, using channels inside the FuncOf, instead. The current method (of calling inside the FuncOf) seems to be responsable to generate `deadlock` errors. It happens even when the wrapped in goroutines. Signed-off-by: Inkeliz <inkeliz@inkeliz.com>