Add log to see if we ever fetch while fetching
// FREEBIE
This commit is contained in:
parent
16f3717824
commit
176339ffe6
1 changed files with 3 additions and 0 deletions
|
@ -295,6 +295,9 @@
|
||||||
fetchMessages: function() {
|
fetchMessages: function() {
|
||||||
console.log('fetchMessages');
|
console.log('fetchMessages');
|
||||||
this.$('.bar-container').show();
|
this.$('.bar-container').show();
|
||||||
|
if (this.inProgressFetch) {
|
||||||
|
console.log('Multiple fetchMessage calls!');
|
||||||
|
}
|
||||||
this.inProgressFetch = this.model.fetchContacts().then(function() {
|
this.inProgressFetch = this.model.fetchContacts().then(function() {
|
||||||
return this.model.fetchMessages().then(function() {
|
return this.model.fetchMessages().then(function() {
|
||||||
this.$('.bar-container').hide();
|
this.$('.bar-container').hide();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue