(Sandr), может так пойдет
<div id="first">click me</div>
<script>
var events = {
'bind': function( elem, eventType, handler ) {
if ( document.addEventListener ) {
elem.addEventListener( eventType, handler, false );
} else {
elem.attachEvent( 'on' + eventType, handler );
}
},
'unbind': function( elem, eventType, handler ) {
if ( document.addEventListener ) {
elem.removeEventListener( eventType, handler, false );
} else {
elem.detachEvent( 'on' + eventType, handler );
}
}
};
(function() {
events.bind( this, 'click', function() { alert( 1 ); } );
events.bind( this, 'click', function() { alert( 2 ); } );
}).call( document.getElementById( 'first' ) );
</script>