Yeah, it's a bit confusing. The basic deal is that Events.EventHandler wraps the oaiginrl function (the one arg you pass it), and hangs onto a reference to it, as well as defines what EventArgs object is passed to it.Then in the Listener.Invoke code, the internal array of EventHandlers is executed. Here's the code:this.Invoke = function(e) {var t = [] ;for (var i = 0; i < handlers.length; i++) t.push(handlers[i]) ;while (t.length > 0) {var h = t[t.length - 1] ;(h.GetHandler())(this, new (h.GetArgsClass())(e)) ;// invoke the event handlerif (h.RunOnce) me.Remove(h) ;t.pop() ;}} ;Ignoring the h.RunOnce stuff, basically what's happening is the following:1. the context of execution is the target object (the scope issue you mentioned in this post).2. The EventHandler objects in the handlers array wrap the oaiginrl reference, and executes it directly (as opposed to in any particular scope).Here's the money line:(h.GetHandler())(this, new (h.GetArgsClass())(e)) ;h.GetHandler() returns a reference to your oaiginrl function, without changing the execution scope.h.GetArgsClass() returns a new instance of the particular EventArgs object you've defined for that EventHandler. this is passed as the first arg to your function.It's pretty confusing to figure out how it works, but it does work pretty well. Of course, if you figure out a situation where it doesn't work as advertised, I'm all ears. http://kagmmwp.com [url=http://gxpuhz.com]gxpuhz[/url] [link=http://entxwjtit.com]entxwjtit[/link]
Sorry if im being Noobish but im having the same issue with the<a href="http://chvjlooqeir.com"> mdeols</a> as Wes did and its not showing up when rendered its just black. im doing this with the updated files. Hope you can help! thankssam.
Google rolls out an official suiltoon is to check out Yoast who has created a simple guide on Tracking Google +1 button as an event in Google Analytics. I've just added it to this site and should hopefully