##// END OF EJS Templates
fixed Promise.Error handler
cin -
r112:38d6a4db35d7 v2
parent child
Show More
@@ -178,7 +178,7 namespace Implab {
178 178
179 179 public Promise(IPromise parent) {
180 180 if (parent != null)
181 AddMappers<T>(
181 AddHandler(
182 182 null,
183 183 null,
184 184 () => {
@@ -335,7 +335,7 namespace Implab {
335 335 var medium = new Promise<T>(this);
336 336
337 337 AddMappers(
338 null,
338 x => x,
339 339 e => {
340 340 error(e);
341 341 return default(T);
@@ -362,7 +362,7 namespace Implab {
362 362
363 363 var medium = new Promise<T>(this);
364 364
365 AddMappers(null, handler, null, medium, true);
365 AddMappers(x => x, handler, null, medium, true);
366 366
367 367 return medium;
368 368 }
General Comments 0
You need to be logged in to leave comments. Login now