How to disable Clamshell mode in Yosemite?
Unplug or detach the power adapter before you close the lid. "Closed clamshell mode" requires the MacBook to be plugged into an outlet to activate.

I actually discovered this through trial and error but here's proof! :)

http://support.apple.com/en-us/HT201834