Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test() {
- var entries, event = {};
- entries = [ { x: 1 }, { x: 2 }, { x: 3 } ];
- entries.forEach( function ( entry ) {
- event = { value: entry };
- setTimeout( function () {
- console.log( event );
- }, 1 );
- } );
- };
- test();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement