Mercurial > eldonilo > lightstring
comparison plugins/roster.js @ 108:5cb4733c5189
many api changes
author | Sonny Piers <sonny@fastmail.net> |
---|---|
date | Fri, 13 Jul 2012 15:26:18 +0200 |
parents | c06ec02217ee |
children |
comparison
equal
deleted
inserted
replaced
107:704ce44c1a22 | 108:5cb4733c5189 |
---|---|
71 | 71 |
72 var subscription = item.getAttribute('subscription'); | 72 var subscription = item.getAttribute('subscription'); |
73 if (subscription) | 73 if (subscription) |
74 contact.subscription = subscription; | 74 contact.subscription = subscription; |
75 | 75 |
76 var ask = item.getAttribute('ask'); | |
77 if (ask) | |
78 contact.ask = ask; | |
79 | |
76 var groups = item.getElementsByTagName('group'); | 80 var groups = item.getElementsByTagName('group'); |
77 if(groups) { | 81 if(groups) { |
78 contact.groups = []; | 82 contact.groups = []; |
79 for (var y = 0; y < groups.length; y++) | 83 for (var y = 0; y < groups.length; y++) |
80 contact.groups.push(groups[y].textContent); | 84 contact.groups.push(groups[y].textContent); |