From 966e66021617c5b1bdf1470706fc7add5de4add1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 22 Oct 2009 15:32:03 -0600 Subject: [PATCH] Use prototypejs Element storage to store data, instead of HTML attributes --- imp/js/DimpCore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index a6faba064..90e87e6bf 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -308,7 +308,7 @@ var DimpCore = { if (o.raw) { a = o.raw; } else { - a = new Element('A', { className: 'address', personal: o.personal, email: o.inner, address: (o.personal ? (o.personal + ' <' + o.inner + '>') : o.inner) }); + a = new Element('A', { className: 'address' }).store({ personal: o.personal, email: o.inner, address: (o.personal ? (o.personal + ' <' + o.inner + '>') : o.inner) }); if (o.personal) { a.writeAttribute({ title: o.inner }).insert(o.personal.escapeHTML()); } else { @@ -431,11 +431,11 @@ var DimpCore = { { switch (elt.readAttribute('id')) { case 'ctx_contacts_new': - this.compose('new', { to: baseelt.readAttribute('address') }); + this.compose('new', { to: baseelt.retrieve('address') }); break; case 'ctx_contacts_add': - this.doAction('AddContact', { name: baseelt.readAttribute('personal'), email: baseelt.readAttribute('email') }, null, true); + this.doAction('AddContact', { name: baseelt.retrieve('personal'), email: baseelt.retrieve('email') }, null, true); break; } }, -- 2.11.0