Skip to content

Commit

Permalink
Fixed crash caused by unnecessary cast in FlexibleCommandBinder
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Weichhold committed Jun 7, 2013
1 parent 0eae0fe commit 55dbd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactiveUI.Platforms/Cocoa/FlexibleCommandBinder.cs
Expand Up @@ -91,7 +91,7 @@ protected void Register(Type type, int affinity, Func<System.Windows.Input.IComm
commandParameter = commandParameter ?? Observable.Return(target);

object latestParam = null;
var ctl = (UIRefreshControl)target;
var ctl = target;

var actionDisp = Observable.FromEventPattern(ctl, eventName).Subscribe((e) => {
if (command.CanExecute(latestParam))
Expand Down

0 comments on commit 55dbd70

Please sign in to comment.