Commit 9e0dabe68dcd325df2a528e3e94ae6787829144e

  • avatar
  • egaudet
  • Sat Oct 03 20:11:19 CEST 2009
fix patch
  
11diff --git a/usr/palm/applications/com.palm.app.email/app/models/EmailAppDepot.js b/usr/palm/applications/com.palm.app.email/app/models/EmailAppDepot.js
2index b2b1cd7..4e4e29b 100644
2index b2b1cd7..57a4157 100644
33--- a/usr/palm/applications/com.palm.app.email/app/models/EmailAppDepot.js
44+++ b/usr/palm/applications/com.palm.app.email/app/models/EmailAppDepot.js
5@@ -47,7 +47,7 @@ var EmailAppDepot = Class.create({
5@@ -47,6 +47,7 @@ var EmailAppDepot = Class.create({
66 if (accounts.list !== undefined && this.numAccounts !== accounts.list.length) {
77 // look for accounts that have been removed
88 var removedAccounts = [];
9- this.accounts.list.each(function(existingAcct){
10+ accounts.list.each(function(existingAcct){
9+ if (this.accounts.list) {
10 this.accounts.list.each(function(existingAcct){
1111 var stillExists = false;
1212 accounts.list.each(function(newAcct) {
13 if (existingAcct.originalLogin === newAcct.originalLogin) {
13@@ -59,6 +60,7 @@ var EmailAppDepot = Class.create({
14 removedAccounts.push(existingAccnt);
15 }
16 });
17+ }
18 if (removedAccounts.length > 0) {
19 // delete the security policy that are associated with the deleted
20 // accounts.