Skip to content

Commit

Permalink
Minor merge cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jedfoster committed Feb 16, 2015
1 parent 1e713a2 commit d848952
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions readmore.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,16 @@

this.init();

// Need to resize boxes when the page has fully loaded.
if (window.addEventListener) {
window.addEventListener('load', resizeBoxes);

window.addEventListener('resize', resizeBoxes);
}
else {
window.attachEvent('load', resizeBoxes);

window.attachEvent('resize', resizeBoxes);
}
// IE8 chokes on `window.addEventListener`, so need to test for support.
if (window.addEventListener) {
// Need to resize boxes when the page has fully loaded.
window.addEventListener('load', resizeBoxes);
window.addEventListener('resize', resizeBoxes);
}
else {
window.attachEvent('load', resizeBoxes);
window.attachEvent('resize', resizeBoxes);
}
}


Expand Down

0 comments on commit d848952

Please sign in to comment.