Sélecteur pour le thème d'icone

This commit is contained in:
2015-08-31 23:08:56 +02:00
parent 5cd3fafb5e
commit 1c0a4e9f13
8 changed files with 97 additions and 34 deletions

View File

@ -30,7 +30,7 @@ module.exports = {
var el = React.findDOMNode(this);
if(typeof this.onInViewport === 'function') {
el.parentNode.addEventListener('scroll', debounce(_onInViewport.bind(this), 250));
window.document.addEventListener('scroll', debounce(_onInViewport.bind(this), 250), true);
}
_onInViewport.call(this);