Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit b8f71b7

Browse files
committed
support for CommonJS modules
1 parent 49b505a commit b8f71b7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

angular-confirm.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* @version v1.2.1 - 2015-11-18
55
* @license Apache
66
*/
7+
/* commonjs package manager support (eg componentjs) */
8+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
9+
module.exports = "angular-confirm";
10+
}
11+
(function(angular) {
712
angular.module('angular-confirm', ['ui.bootstrap.modal'])
813
.controller('ConfirmModalController', function ($scope, $uibModalInstance, data) {
914
$scope.data = angular.copy(data);
@@ -92,3 +97,4 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])
9297
}
9398
}
9499
});
100+
})(angular);

angular-confirm.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)