@@ -164,12 +164,12 @@ export class GridView extends GridViewBase {
164164 view = this . _getItemTemplateContent ( ) ;
165165 }
166166
167- this . notify ( {
167+ this . notify < GridItemEventData > ( {
168168 eventName : GridViewBase . itemLoadingEvent ,
169169 object : this ,
170170 index : indexPath . row ,
171171 view
172- } as GridItemEventData ) ;
172+ } ) ;
173173
174174 // If cell is reused it have old content - remove it first.
175175 if ( ! cell . view ) {
@@ -219,6 +219,7 @@ export class GridView extends GridViewBase {
219219 bottom : this . _layout . sectionInset . bottom ,
220220 left : this . _layout . sectionInset . left
221221 } ;
222+ // tslint:disable-next-line:prefer-object-spread
222223 const newValue = Object . assign ( padding , newPadding ) ;
223224 this . _layout . sectionInset =
224225 UIEdgeInsetsFromString ( `{${ newValue . top } ,${ newValue . left } ,${ newValue . bottom } ,${ newValue . right } }` ) ;
@@ -288,10 +289,10 @@ class UICollectionViewDelegateImpl extends NSObject implements UICollectionViewD
288289 const owner = this . _owner . get ( ) ;
289290
290291 if ( indexPath . row === owner . items . length - 1 ) {
291- owner . notify ( {
292+ owner . notify < EventData > ( {
292293 eventName : GridViewBase . loadMoreItemsEvent ,
293294 object : owner
294- } as EventData ) ;
295+ } ) ;
295296 }
296297
297298 if ( cell . preservesSuperviewLayoutMargins ) {
@@ -307,12 +308,12 @@ class UICollectionViewDelegateImpl extends NSObject implements UICollectionViewD
307308 const cell = collectionView . cellForItemAtIndexPath ( indexPath ) ;
308309 const owner = this . _owner . get ( ) ;
309310
310- owner . notify ( {
311+ owner . notify < GridItemEventData > ( {
311312 eventName : GridViewBase . itemTapEvent ,
312313 object : owner ,
313314 index : indexPath . row ,
314315 view : ( cell as GridViewCell ) . view
315- } as GridItemEventData ) ;
316+ } ) ;
316317
317318 cell . highlighted = false ;
318319
0 commit comments