@@ -214,7 +214,7 @@ interface Zone {
214214 /**
215215 * Execute the Task by restoring the [Zone.currentTask] in the Task's zone.
216216 *
217- * @param callback
217+ * @param task to run
218218 * @param applyThis
219219 * @param applyArgs
220220 * @returns {* }
@@ -310,12 +310,12 @@ interface ZoneType {
310310 */
311311interface ZoneSpec {
312312 /**
313- * The name of the zone. Usefull when debugging Zones.
313+ * The name of the zone. Useful when debugging Zones.
314314 */
315315 name : string ;
316316
317317 /**
318- * A set of properties to be associated with Zone. Use [Zone.get] to retrive them.
318+ * A set of properties to be associated with Zone. Use [Zone.get] to retrieve them.
319319 */
320320 properties ?: { [ key : string ] : any } ;
321321
@@ -325,7 +325,7 @@ interface ZoneSpec {
325325 * When the zone is being forked, the request is forwarded to this method for interception.
326326 *
327327 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
328- * @param currentZone The current [Zone] where the current interceptor has beed declared.
328+ * @param currentZone The current [Zone] where the current interceptor has been declared.
329329 * @param targetZone The [Zone] which originally received the request.
330330 * @param zoneSpec The argument passed into the `fork` method.
331331 */
@@ -337,7 +337,7 @@ interface ZoneSpec {
337337 * Allows interception of the wrapping of the callback.
338338 *
339339 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
340- * @param currentZone The current [Zone] where the current interceptor has beed declared.
340+ * @param currentZone The current [Zone] where the current interceptor has been declared.
341341 * @param targetZone The [Zone] which originally received the request.
342342 * @param delegate The argument passed into the `warp` method.
343343 * @param source The argument passed into the `warp` method.
@@ -350,7 +350,7 @@ interface ZoneSpec {
350350 * Allows interception of the callback invocation.
351351 *
352352 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
353- * @param currentZone The current [Zone] where the current interceptor has beed declared.
353+ * @param currentZone The current [Zone] where the current interceptor has been declared.
354354 * @param targetZone The [Zone] which originally received the request.
355355 * @param delegate The argument passed into the `run` method.
356356 * @param applyThis The argument passed into the `run` method.
@@ -365,7 +365,7 @@ interface ZoneSpec {
365365 * Allows interception of the error handling.
366366 *
367367 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
368- * @param currentZone The current [Zone] where the current interceptor has beed declared.
368+ * @param currentZone The current [Zone] where the current interceptor has been declared.
369369 * @param targetZone The [Zone] which originally received the request.
370370 * @param error The argument passed into the `handleError` method.
371371 */
@@ -377,7 +377,7 @@ interface ZoneSpec {
377377 * Allows interception of task scheduling.
378378 *
379379 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
380- * @param currentZone The current [Zone] where the current interceptor has beed declared.
380+ * @param currentZone The current [Zone] where the current interceptor has been declared.
381381 * @param targetZone The [Zone] which originally received the request.
382382 * @param task The argument passed into the `scheduleTask` method.
383383 */
@@ -389,10 +389,10 @@ interface ZoneSpec {
389389 applyThis : any , applyArgs : any ) => any ;
390390
391391 /**
392- * Allows interception of task cancelation .
392+ * Allows interception of task cancellation .
393393 *
394394 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
395- * @param currentZone The current [Zone] where the current interceptor has beed declared.
395+ * @param currentZone The current [Zone] where the current interceptor has been declared.
396396 * @param targetZone The [Zone] which originally received the request.
397397 * @param task The argument passed into the `cancelTask` method.
398398 */
@@ -403,12 +403,13 @@ interface ZoneSpec {
403403 * Notifies of changes to the task queue empty status.
404404 *
405405 * @param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
406- * @param currentZone The current [Zone] where the current interceptor has beed declared.
406+ * @param currentZone The current [Zone] where the current interceptor has been declared.
407407 * @param targetZone The [Zone] which originally received the request.
408- * @param isEmpty
408+ * @param hasTaskState
409409 */
410410 onHasTask ?:
411- ( delegate : ZoneDelegate , current : Zone , target : Zone , hasTaskState : HasTaskState ) => void ;
411+ ( parentZoneDelegate : ZoneDelegate , currentZone : Zone , targetZone : Zone ,
412+ hasTaskState : HasTaskState ) => void ;
412413}
413414
414415
@@ -568,7 +569,7 @@ interface Task {
568569
569570 /**
570571 * Cancel the scheduling request. This method can be called from `ZoneSpec.onScheduleTask` to
571- * cancel the current scheduling interception. Once canceled the task can be discarted or
572+ * cancel the current scheduling interception. Once canceled the task can be discarded or
572573 * rescheduled using `Zone.scheduleTask` on a different zone.
573574 */
574575 cancelScheduleRequest ( ) : void ;
@@ -596,7 +597,7 @@ interface Error {
596597 zoneAwareStack ?: string ;
597598
598599 /**
599- * Original stack trace with no modiffications
600+ * Original stack trace with no modifications
600601 */
601602 originalStack ?: string ;
602603}
@@ -1090,7 +1091,6 @@ const Zone: ZoneType = (function(global: any) {
10901091 eventTask : counts . eventTask > 0 ,
10911092 change : type
10921093 } ;
1093- // TODO(misko): what should happen if it throws?
10941094 this . hasTask ( this . zone , isEmpty ) ;
10951095 }
10961096 }
@@ -1206,7 +1206,7 @@ const Zone: ZoneType = (function(global: any) {
12061206
12071207 function __symbol__ ( name : string ) {
12081208 return '__zone_symbol__' + name ;
1209- } ;
1209+ }
12101210 const symbolSetTimeout = __symbol__ ( 'setTimeout' ) ;
12111211 const symbolPromise = __symbol__ ( 'Promise' ) ;
12121212 const symbolThen = __symbol__ ( 'then' ) ;
@@ -1579,9 +1579,9 @@ const Zone: ZoneType = (function(global: any) {
15791579 if ( resultPromise instanceof ZoneAwarePromise ) {
15801580 return resultPromise ;
15811581 }
1582- let Ctor = resultPromise . constructor ;
1583- if ( ! Ctor [ symbolThenPatched ] ) {
1584- patchThen ( Ctor ) ;
1582+ let ctor = resultPromise . constructor ;
1583+ if ( ! ctor [ symbolThenPatched ] ) {
1584+ patchThen ( ctor ) ;
15851585 }
15861586 return resultPromise ;
15871587 } ;
@@ -1596,7 +1596,7 @@ const Zone: ZoneType = (function(global: any) {
15961596 }
15971597 }
15981598
1599- // This is not part of public API, but it is usefull for tests, so we expose it.
1599+ // This is not part of public API, but it is useful for tests, so we expose it.
16001600 ( Promise as any ) [ Zone . __symbol__ ( 'uncaughtPromiseErrors' ) ] = _uncaughtPromiseErrors ;
16011601
16021602 /*
@@ -1775,7 +1775,7 @@ const Zone: ZoneType = (function(global: any) {
17751775 } ) ;
17761776
17771777 // Now we need to populate the `blacklistedStackFrames` as well as find the
1778- // run/runGuraded /runTask frames. This is done by creating a detect zone and then threading
1778+ // run/runGuarded /runTask frames. This is done by creating a detect zone and then threading
17791779 // the execution through all of the above methods so that we can look at the stack trace and
17801780 // find the frames of interest.
17811781 let detectZone : Zone = Zone . current . fork ( {
0 commit comments