Another party could stand on a manifesto of ignoring the referendum result:
The promise was made by a previous government, and no party can tie the hands of future governments. That it's the same party is incidental. May is not bound to follow Cameron's promises.