Why does addClass work on one element but not another?
===

The code below is in HAML. "open" gets added to the `ul` element, but not the `dropdown#register` element.

    %ul.nav
    %script $("#register_dropdown").addClass("open");
    %script $("ul").addClass("open");
    %span.dropdown#register_dropdown