You mean developers are allowed to share code ?
You could always sell someone the rights and code for your app, but there was no way to move it to a different account so they retained ownership. You had to either re-submit the app, or give them your developer account. Both came with massive downsides.