]> khamidou — GitHub mirrors - electron.git/commitdiff
Deprecate 'activate-with-no-open-windows' event.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 15 Sep 2015 01:36:05 +0000 (18:36 -0700)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 15 Sep 2015 01:36:05 +0000 (18:36 -0700)
atom/browser/mac/atom_application_delegate.mm
docs/api/app.md

index 525e700e2b4e1303402b34da2ff3c8e5fc1aba49..7bdab03e0dc8b9311ae1b5ad82e10c03d837becf 100644 (file)
@@ -56,6 +56,7 @@
   if (flag) {
     return YES;
   } else {
+    // Deprecated API, for compatibility.
     browser->ActivateWithNoOpenWindows();
     return NO;
   }
index ba61e1a0e0d8f848eaa106a0c83d8821c48f6bae..85ad873de30d1005b220efd8918ba88efa9e5ad5 100644 (file)
@@ -94,12 +94,6 @@ must be registered to be opened by your application.
 
 You should call `event.preventDefault()` if you want to handle this event.
 
-### Event: 'activate-with-no-open-windows' _OS X_
-
-Emitted when the application is activated while there are no open windows, which
-usually happens when the user has closed all of the application's windows and
-then clicks on the application's dock icon.
-
 ### Event: 'activate' _OS X_
 
 Returns: