Page MenuHomePhabricator

Use `window.confirm` instead of `confirm`
ClosedPublic

Authored by joshuaspence on Dec 30 2014, 10:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 16, 10:38 PM
Unknown Object (File)
Fri, Sep 13, 7:45 PM
Unknown Object (File)
Thu, Sep 5, 8:11 AM
Unknown Object (File)
Mon, Sep 2, 11:56 AM
Unknown Object (File)
Aug 5 2024, 5:29 AM
Unknown Object (File)
Jul 23 2024, 12:16 AM
Unknown Object (File)
Jul 16 2024, 5:24 PM
Unknown Object (File)
Jul 14 2024, 4:23 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP5251f08fb432: Use `window.confirm` instead of `confirm`
Summary

This silences the following JSHint warning:

>>> Lint for webroot/rsrc/js/application/uiexample/notification-example.js:

   Warning  (W117) JSHintW117
    'confirm' is not defined.

              39           notification.listen(
              40             'activate',
              41             function() {
    >>>       42               if (!confirm('Close notification?')) {
              43                 JX.Stratcom.context().kill();
              44               }
              45             });
Test Plan

arc lint

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Use `window.confirm` instead of `confirm`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 30 2014, 10:53 AM
This revision was automatically updated to reflect the committed changes.