context: function init(event) {    _('xmpp-incoming').addEventListener(        'DOMNodeInserted', function(event) {            var stanza = new XML(event.target.textContent);            switch(stanza.localName()) {            case 'message':                seenMessage(stanza);                break;            case 'presence':                seenPresence(stanza);                break;            case 'iq':                seenIq(stanza);                break;            }        }, false);    _('chat-output').addEventListener(        'hsDrop', function(event) { droppedDataInConversation(event); }, false);    info.init(_('info'));    window.addEventListener(        'resize', function(event) { resizedWindow(event); }, false);    _('chat-output').addEventListener(        'scroll', function(event) { scrolledWindow(event); }, false);    window.addEventListener(        'focus', function(event) { _('chat-input').focus(); }, false);    window.addEventListener(        'blur', function(event) { _('chat-input').blur(); }, false);    behaviour.input(_('chat-input'));    _('chat-input').addEventListener(        'load', function(event) {            _('chat-input').focus();        }, false);    _('chat-input').addEventListener(        'accept', function(event) {            sendXHTML(event.target.xhtml);        }, false);        _('chat-input').addEventListener(        'resizing', function(event) {            // XXX This should not be hardcoded.            _('chat-output').style.bottom = event.target.clientHeight + 8 + 'px';            _('lower-menus').style.bottom = event.target.clientHeight + 2 + 'px';            repositionOutput();        }, false);    var composing = false;    _('chat-input').addEventListener(        'keyup', function(event) {            if(!composing)                return;            if(event.target.isEmpty()) {                composing = false;                sendEvent('active');            }        }, false);    _('chat-input').addEventListener(        'keypress', function(event) {            if(event.target.isEmpty() && event.charCode != 0) {                composing = true;                sendEvent('composing');            }        }, false);}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/efe88ecf8d8e23be0a0aaaed22947da5b831ca04/main.js/clean/chrome/content/app/main.js