No, nowadays we ask them to sign NDA etc. and if they breach it drag them to court, which is pretty much what happened here. A clauses in the employment contract preventing you from leaking secrets and stating that any IP created during your employment is property of the employer are standard.