Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Desarrollo FrontEnd con JavaScript #05
Search
Gustavo Leon
February 15, 2013
0
52
Desarrollo FrontEnd con JavaScript #05
Gustavo Leon
February 15, 2013
Tweet
Share
More Decks by Gustavo Leon
See All by Gustavo Leon
Usando Preact - Una alternativa ligera a React
hpneo
0
220
Manejando Docker containers con Ruby y backticks
hpneo
0
310
CodePicnic: Lecciones aprendidas al crear una startup tecnológica
hpneo
0
430
Universal Web apps con JavaScript
hpneo
0
270
gmaps.js - 4 lecciones open source en 4 pasos
hpneo
0
650
Xamarin
hpneo
1
260
Desarrollo FrontEnd con JavaScript - S06
hpneo
0
96
Desarrollo FrontEnd con JavaScript - S05
hpneo
0
52
Desarrollo FrontEnd con JavaScript - S04
hpneo
0
75
Featured
See All Featured
Building Your Own Lightsaber
phodgson
103
6.1k
Designing for humans not robots
tammielis
250
25k
A Philosophy of Restraint
colly
203
16k
Unsuck your backbone
ammeep
669
57k
Rails Girls Zürich Keynote
gr2m
94
13k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Documentation Writing (for coders)
carmenintech
66
4.5k
How STYLIGHT went responsive
nonsquared
95
5.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Mobile First: as difficult as doing things right
swwweet
222
9k
How to Ace a Technical Interview
jacobian
276
23k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Transcript
#05 – promises / deferred object
None
Promises • Permite asignar varios callbacks a una petición asíncrona
• Separa la petición asíncrona de los callbacks de error y éxito • Encadena peticiones asíncronas
Promises con jQuery
Promises con jQuery
None
Deferred • Sirve para crear funciones asíncronas • Devuelve un
promise. • resolve : dispara los callbacks en done • reject : dispara los callbacks en fail
Deferred Object