VE-743 VisualEditor orientation dialog

Why not cache this.frame.$element.parent() just before these checks?