var e = this.originalEvent;
if( !e )
return;
// if stopPropagation exists run it on the original event
if (e.stopPropagation)
e.stopPropagation();
// otherwise set the cancelBubble property of the original event to true (IE)
e.cancelBubble = true;
},
stopImmediatePropagation:function(){
this.isImmediatePropagationStopped = returnTrue;
this.stopPropagation();
},
isImmediatePropagationStopped: returnFalse
};
})(document);
var $ = function(id){return document.getElementById(id)}
var a = function(){alert(1)}
window.onload = function(){
gevent.add($(‘xx’),’click’,a);
gevent.add($(‘xx’),’click’,function(){alert(1)});
gevent.add($(‘xx’),’click’,function(){alert(2)});
gevent.add($(‘xx’),’click’,function(){alert(3)});
gevent.add($(‘xx’),’click.xx’,function(){alert(4)});
}
</script>
</body>
</html>










