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

Commit d63a3a2

Browse files
committed
Update angular-confirm.js
using angular.isUndefined
1 parent b95931c commit d63a3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-confirm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ angular.module('angular-confirm', ['ui.bootstrap.modal'])
2929
};
3030

3131
$scope.cancel = function (dismissMessage) {
32-
if (typeof dismissMessage === 'undefined') dismissMessage = 'cancel';
32+
if (angular.isUndefined(dismissMessage)) dismissMessage = 'cancel';
3333
$uibModalInstance.dismiss(dismissMessage);
3434
};
3535

0 commit comments

Comments
 (0)