fjgandrade / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Unable to remove event handler from "System.Action" event #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I can attach an event handler like follows just fine:
_scroller.OnScrollReachEnd += this.ShowUpdating;

but unsubscribing to the event as follows:
_scroller.OnScrollReachEnd -= this.ShowUpdating;

I get the following error:
TypeError: 'undefined' is not a function (evaluating 
'System.Delegate.Remove$$Delegate$$Delegate(this.OnScrollReachEnd, value)')

Original issue reported on code.google.com by sergio.d...@gmail.com on 12 Aug 2011 at 2:51

GoogleCodeExporter commented 9 years ago
Please update to the latest SharpKit version, 
and use the new JsClr4.1.0 assembly and script file jsclr-4.1.0.js
and check again.
Otherwise, you should compile using SharpKit compatibility mode by adding the 
following define: JSCLR_4_0_0

Original comment by DanelK...@gmail.com on 12 Aug 2011 at 3:22