Timeline for Support for sharing stories on Facebook
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 29, 2013 at 16:25 | comment | added | Beetroot-Beetroot |
I was wondering if you might ask. As I said, rootPromise isn't strictly necessary and yes, login()... . is the other way to proceed but in that case login() would need to return a promise under both conditions - isLoggedIn and !isLoggedIn - otherwise login().then() would throw an error. Using a ready-resolved "rootPromise" or "starterPromose" is quite a common technique when building .then() chains.
|
|
May 29, 2013 at 13:11 | comment | added | Naor | Why did you made: rootPromise.then(login).then(share).then(publish).then(navigate); instead of: login().then(share).then(publish).then(navigate); | |
May 29, 2013 at 11:26 | history | edited | Beetroot-Beetroot | CC BY-SA 3.0 |
added 49 characters in body
|
May 29, 2013 at 11:16 | history | edited | Beetroot-Beetroot | CC BY-SA 3.0 |
deleted 1 characters in body
|
May 29, 2013 at 10:56 | history | answered | Beetroot-Beetroot | CC BY-SA 3.0 |