Skip to content
Browse files

I am the worst programmer

  • Loading branch information...
1 parent b8bb638 commit 363d44b3696e163cac529450f41df950e79b48d8 @paulcbetts paulcbetts committed Jan 2, 2013
Showing with 14 additions and 14 deletions.
  1. +14 −14 ReactiveUI/PropertyBinding.cs
View
28 ReactiveUI/PropertyBinding.cs
@@ -295,10 +295,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
});
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.TwoWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -346,10 +346,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", viewType.Name, String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.OneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -372,10 +372,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", typeof(TView), String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.OneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -411,10 +411,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", typeof (TView), String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.OneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -427,10 +427,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", typeof(TView), String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.OneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -460,10 +460,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", typeof (TView), String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.AsyncOneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}
@@ -476,10 +476,10 @@ class PropertyBinderImplementation : IPropertyBinderImplementation
var vString = String.Format("{0}.{1}", typeof(TView), String.Join(".", viewPropChain));
var hooks = RxApp.GetAllServices<IPropertyBindingHook>();
- var shouldBail = hooks.Aggregate(true, (acc, x) =>
+ var shouldBind = hooks.Aggregate(true, (acc, x) =>
acc && x.ExecuteHook(viewModel, view, vmString, vString, BindingDirection.OneWay));
- if (shouldBail) {
+ if (!shouldBind) {
this.Log().Warn("Binding hook asked to disable binding {0} => {1}", vmString, vString);
return Disposable.Empty;
}

0 comments on commit 363d44b

Please sign in to comment.
Something went wrong with that request. Please try again.