I've pushed up a new commit fixing the var name.  Otherwise, that's correct: the old modal shows up on older versions of WP, and the new modal appears on 3.5+.  I tested on 3.4.1 and 3.5.1 without issue.