fix onAddClass callback firing on each resize event