File tree 1 file changed +11
-13
lines changed
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 424
424
) ;
425
425
426
426
// eslint-disable-next-line angular/definedundefined
427
- if ( 'undefined' !== typeof module && 'undefined' !== typeof module . exports ) {
427
+ if ( typeof module !== 'undefined' && module . exports ) {
428
428
// CommonJS
429
- if ( angular ) {
430
- factory ( angular ) ;
431
- } else {
429
+ // eslint-disable-next-line angular/definedundefined
430
+ if ( 'undefined' === typeof angular ) {
432
431
factory ( require ( 'angular' ) ) ;
432
+ } else {
433
+ factory ( angular ) ;
433
434
}
434
435
module . exports = 'tableview' ;
436
+ // eslint-disable-next-line angular/typecheck-function
437
+ } else if ( 'function' === typeof define && define . amd ) {
438
+ // AMD
439
+ define ( [ 'angular' ] , factory ) ;
435
440
} else {
436
- // noinspection JSUnresolvedVariable
437
- if ( 'function' === typeof define && define . amd ) { // eslint-disable-line angular/typecheck-function
438
- // AMD
439
- // noinspection JSUnresolvedFunction
440
- define ( [ 'angular' ] , factory ) ;
441
- } else {
442
- // Global Variables
443
- factory ( G . angular ) ;
444
- }
441
+ // Global Variables
442
+ factory ( G . angular ) ;
445
443
}
446
444
447
445
} ) ( this , document ) ;
You can’t perform that action at this time.
0 commit comments