For performance reasons use classes collection instead of jQuery.hasClass

Change-Id: Id64a58d71c49ad74c55e3a24b86955ece668ebba
Merge "For performance reasons use classes collection instead of jQuery.hasClass"