comparison Implab/Promise.cs @ 105:4d308952fd5e v2

minor fixes
author cin
date Mon, 10 Nov 2014 10:17:54 +0300
parents 5f10d54b45df
children d4e38929ce36
comparison
equal deleted inserted replaced
104:5f10d54b45df 105:4d308952fd5e
891 return ChainNoResult(chained, null, null); 891 return ChainNoResult(chained, null, null);
892 } 892 }
893 893
894 894
895 void IPromise.On(Action success, Action<Exception> error, Action cancel) { 895 void IPromise.On(Action success, Action<Exception> error, Action cancel) {
896 On(x => success(), error, cancel); 896 On(success != null ? new Action<T>(x => success()) : null, error, cancel);
897 } 897 }
898 898
899 void IPromise.On(Action success, Action<Exception> error) { 899 void IPromise.On(Action success, Action<Exception> error) {
900 On(x => success(), error, null); 900 On(x => success(), error, null);
901 } 901 }