The promise library of the [tag:rsvp.js] suite
Questions tagged [rsvp-promise]
52 questions
0
votes
1 answer
Returning response from an asynchoronous call not working in Emberjs Helper
I'm trying to return a response from an ajax call to the Ember js helper. An Asynchoronous call using Promise in Helper is returning [object Object].
console.log(data.thumbnail_url); is working but the callback is not returning the…

Hasib Mahmud
- 806
- 1
- 10
- 29
0
votes
2 answers
How do I then() on a promise?
I'm using the RSVP.js lib in a browser.
I have one promise applicationReady
I have another promise loadSomeData
I have a final promise, configureUI
Each relies on the previous promise to do it's work. How do I get these three promises to run in…

Michael Cole
- 15,473
- 7
- 79
- 96
0
votes
1 answer
Try to get Javascript functions to run Synchronously
I'm having trouble with the following code snippet. My init method needs to run and complete the getLocation() function before the initializeMapp() and geoListen() can run. I have rsvp.js linked as a resource, but not quite sure how to implement. …

BanditX
- 21
- 3
0
votes
2 answers
Defined function insists its undefined
I have simple little program which defines two functions as variables. These functions both return RSVP Promises so that they can be chained together as I have done below. I use this pattern often but in this case I'm running into madness ...
var…

ken
- 8,763
- 11
- 72
- 133
0
votes
2 answers
Resolving a promise multiple times
I am building a module using Promises, where I make multiple http calls on multiple urls, parse the responses and then again make more http calls.
c = new RSVP.Promise({urls:[]}) //Passing a list of urls
c.then(http_module1) // Call the http…

tusharmath
- 10,622
- 12
- 56
- 83
-1
votes
1 answer
How do I understand this custom use of Promise in code
I use some Promise code used in my application as below;
import { Promise, resolve, all } from 'rsvp';
someAction: function(secId, fld, callback) {
var self = this;
var section = self.findSection(self.get('allSecs'), secId);
var…

copenndthagen
- 49,230
- 102
- 290
- 442
-1
votes
2 answers
Ember Understand execution flow between route/controller
I have a "box" route/controller as below;
export default Ember.Controller.extend({
initialized: false,
type: 'P',
status: 'done',
layouts: null,
toggleFltr: null,
gridVals: Ember.computed.alias('model.gridParas'),
…

copenndthagen
- 49,230
- 102
- 290
- 442