rem: 'chat', getDefaultAppUrl()); 
add: getDefaultAppUrl()); 
context: function init(event) {    if(!event.target)        return;    channel = XMPP.createChannel(        <query xmlns="http://jabber.org/protocol/disco#info">        <feature var="http://jabber.org/protocol/muc"/>        <feature var="http://jabber.org/protocol/muc#user"/>        <feature var='http://jabber.org/protocol/xhtml-im'/>        </query>);    channel.on(        {event: 'presence', direction: 'out', stanza: function(s) {                return (s.@type == undefined || s.@type == 'unavailable') &&                    s.ns_muc::x == undefined && s.@to == undefined;            }},        function(presence) { sentAvailablePresence(presence) });    channel.on(        {event: 'message', direction: 'in', stanza: function(s) {                return s.body.length() > 0 && s.@type != 'error';            }}, function(message) { seenChatMessage(message); });    channel.on(        {event: 'message', direction: 'out', stanza: function(s) {                return s.body.length() > 0 && s.@type != 'groupchat';            }}, function(message) { seenChatMessage(message) });    channel.on(        {event: 'presence', direction: 'out', stanza: function(s) {                return s.ns_muc::x.length() > 0 && s.@type != 'unavailable';            }}, function(presence) { sentMUCPresence(presence) });    contacts = _('contacts').contentWindow;    contacts.onRequestedCommunicate = requestedCommunicate;    XMPP.cache.presenceOut.forEach(sentAvailablePresence);    _('conversations').addEventListener(        'DOMNodeInserted', function(event) {            if(event.target instanceof XULElement &&               event.target.parentNode == _('conversations')) {                var hideConversations = _('conversations').childNodes.length == 0;                _('conversations').collapsed = hideConversations;                _('contact-toolbox', {role: 'close'}).hidden = hideConversations;                _('contact-toolbox', {role: 'attach'}).hidden = hideConversations;                if(hideConversations)                    _('contact').value = '';            }        }, false);    _('conversations').addEventListener(        'DOMNodeRemoved', function(event) {            if(event.target instanceof XULElement &&               event.target.parentNode == _('conversations')) {                var hideConversations = _('conversations').childNodes.length == 1;                _('contact-toolbox', {role: 'close'}).hidden = hideConversations;                _('contact-toolbox', {role: 'attach'}).hidden = hideConversations;                if(hideConversations)                    _('contact').value = '';            }        }, false);    behaviour.autoComplete(_('contact'));    _('contact').addEventListener(        'complete', function(event) {            buildContactCompletions(event.target);        }, false);    _('contact').addEventListener(        'completed', function(event) {            requestedCommunicate(                event.target.getAttribute('account'),                event.target.getAttribute('address'),                'chat', getDefaultAppUrl());        }, false);}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/3d03c704d31790147c4d562f24d9f08ddc1e6bb9/sameplace.js/clean/chrome/content/sameplace.js