It's removed duplicated functions as hasClass, addClass, removeClass and toggleClass.