Last active
July 31, 2016 17:07
-
-
Save codemilli/f60d7064fa746dae215f229d474e2e9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PromiseArray = []; | |
el.addEventListener('scroll', function(e) { | |
PromiseArray.push(new Promise(...)); | |
forEachForPromise(); | |
}); | |
function forEachForPromises() { | |
PromiseArray.filter(function(promise) { | |
promise.then(function(data) { | |
if (...) {} | |
}); | |
return ???; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment