Added Canvas.connect to register event handlers based on func name.