Deprecate 'activate-with-no-open-windows' event.

This commit is contained in:
Haojian Wu 2015-09-14 18:36:05 -07:00
parent 377e7ee3a7
commit 40d93ce55a
2 changed files with 1 additions and 6 deletions

View file

@ -56,6 +56,7 @@
if (flag) {
return YES;
} else {
// Deprecated API, for compatibility.
browser->ActivateWithNoOpenWindows();
return NO;
}

View 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: