Skip to content

Commit 92918ba

Browse files
committed
update loader part
1 parent 7f38b72 commit 92918ba

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

angular.tableview.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -424,24 +424,22 @@
424424
);
425425

426426
// eslint-disable-next-line angular/definedundefined
427-
if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {
427+
if (typeof module !== 'undefined' && module.exports) {
428428
// CommonJS
429-
if (angular) {
430-
factory(angular);
431-
} else {
429+
// eslint-disable-next-line angular/definedundefined
430+
if ('undefined' === typeof angular) {
432431
factory(require('angular'));
432+
} else {
433+
factory(angular);
433434
}
434435
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);
435440
} 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);
445443
}
446444

447445
})(this, document);

0 commit comments

Comments
 (0)