setCreatePopupFunc

Sets @func to be called when a popup is about to be shown.

Parameters

func

function to call when a popup is about to be shown, but none has been provided via other means, or null to reset to default behavior