Skip to content

Commit 5a8e832

Browse files
authored
Update notification.js
Fix avoid set cancelable to true when the input is false
1 parent eecb7a5 commit 5a8e832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/notification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
* @param {Boolean} cancelable Flag to disable dismiss alert on outside touch
5555
*/
5656
confirm: function (message, resultCallback, title, buttonLabels, cancelable) {
57-
if (!cancelable) { cancelable = true; }
57+
if (cancelable == null) { cancelable = true; }
5858
var _message = (typeof message === 'string' ? message : JSON.stringify(message));
5959
var _title = (typeof title === 'string' ? title : 'Confirm');
6060
var _buttonLabels = (buttonLabels || ['OK', 'Cancel']);

0 commit comments

Comments
 (0)