added applyDiff to the domdiff object