]> khamidou — GitHub mirrors - electron.git/commitdiff
follow style guidelines
authorleethomas <leet944@gmail.com>
Mon, 11 Jan 2016 03:15:40 +0000 (19:15 -0800)
committerleethomas <leet944@gmail.com>
Mon, 11 Jan 2016 03:15:40 +0000 (19:15 -0800)
atom/browser/api/lib/dialog.coffee
atom/browser/ui/message_box_mac.mm
docs/api/dialog.md

index 2768fe096a0526e2d6f1822f71f1659103a66f96..2daf346db46808fd8d0f8cfc9f71112dc4115e22 100644 (file)
@@ -91,10 +91,10 @@ module.exports =
 
     throw new TypeError('Buttons need to be array') unless Array.isArray options.buttons
 
-    options.title              ?= ''
-    options.message            ?= ''
-    options.detail             ?= ''
-    options.icon               ?= null
+    options.title ?= ''
+    options.message ?= ''
+    options.detail ?= ''
+    options.icon ?= null
     options.defaultId ?= -1
 
     # Choose a default button to get selected when dialog is cancelled.
index 79c60b5ffe3c3f1b7abb1505131aea73f96cb017..3acc46ec82f1506fe81eb4f45c3f60bf7470f46c 100644 (file)
@@ -84,9 +84,9 @@ NSAlert* CreateNSAlert(NativeWindow* parent_window,
     [button setTag:i];
 
     if (i == (size_t)default_id) {
-      // focus the button at default_id if the user opted to do so.
+      // Focus the button at default_id if the user opted to do so.
       // The first button added gets set as the default selected.
-      // So remove that default, and make the requested button the default
+      // So remove that default, and make the requested button the default.
       [[[alert buttons] objectAtIndex:0] setKeyEquivalent:@""];
       [button setKeyEquivalent:@"\r"];
     }
index 519f89b9c5df123dfdf53d495e1da127eb0eca7d..84a22ef692b3d6ced73f1aa3575c5cbbf882bf7e 100644 (file)
@@ -87,7 +87,8 @@ will be passed via `callback(filename)`
   `"warning"`. On Windows, "question" displays the same icon as "info", unless
   you set an icon using the "icon" option.
   * `buttons` Array - Array of texts for buttons.
-  * `defaultId` Integer - Index of the button in the buttons array which will be selected by default when the message box opens.
+  * `defaultId` Integer - Index of the button in the buttons array which will
+    be selected by default when the message box opens.
   * `title` String - Title of the message box, some platforms will not show it.
   * `message` String - Content of the message box.
   * `detail` String - Extra information of the message.