Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Before introducing promises, each of these functions required a callback to be passed in to it.
- // This leads to deeply nested structures and the arrow-anti-pattern, creating more visual complexity
- // and reducing the maintainability of this code
- Tiles.getImagesForTile(function(images){
- Tiles.buildThumnails(images, function(thumbnails){
- Tiles.transmogrify(thumbnails, function(notification){
- updater.update(notification);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement