Refactor hasClass utility function
Merge pull request #112 from Livefyre/p_slide_toggle_2

Refactor hasClass utility function