What does this $apply do?