Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16270 from jrburke/bug971617-email-wrong-folder-list
Browse files Browse the repository at this point in the history
Bug 971617 - [Sora]Switching accounts,and select the folder to move the mail,the current account folder list display error r=asuth
  • Loading branch information
jrburke committed Feb 14, 2014
2 parents 8747936 + 06fd4a9 commit cf24f19
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/email/js/model.js
Expand Up @@ -61,8 +61,18 @@ define(function(require) {
**/
folder: null,

/**
* emits an event based on a property value. Since the
* event is based on a property value that is on this
* object, *do not* use emitWhenListener, since, due to
* the possibility of queuing old values with that
* method, it could cause bad results (bug 971617), and
* it is not needed since the latest* methods will get
* the latest value on this object.
* @param {String} id event ID/property name
*/
_callEmit: function(id) {
this.emitWhenListener(id, this[id]);
this.emit(id, this[id]);
},

inited: false,
Expand Down

0 comments on commit cf24f19

Please sign in to comment.