]> khamidou — GitHub mirrors - electron.git/commitdiff
Tray: Rename events to drag-enter and drag-leave
authorNishanth Shanmugham <nishanth.gerrard@gmail.com>
Tue, 10 Nov 2015 15:27:39 +0000 (09:27 -0600)
committerNishanth Shanmugham <nishanth.gerrard@gmail.com>
Tue, 10 Nov 2015 15:27:39 +0000 (09:27 -0600)
Previously, the names were drag-entered and drag-exited. The new names mirror the HTML Drag and Drop event names

atom/browser/api/atom_api_tray.cc
docs/api/tray.md

index 5381c77c37938bd688432233b66e0cbffbd06387..00b8eda7b54aac71ae3da89b51ff5200167fefc0 100644 (file)
@@ -79,11 +79,11 @@ void Tray::OnDropFiles(const std::vector<std::string>& files) {
 }
 
 void Tray::OnDragEntered() {
-  Emit("drag-entered");
+  Emit("drag-enter");
 }
 
 void Tray::OnDragExited() {
-  Emit("drag-exited");
+  Emit("drag-leave");
 }
 
 bool Tray::IsDestroyed() const {
index 5d187fc5b88cef9feae98edf105fddace48b9281..37e17d88ca2574453ecec7ff4598d4ce2c182bd2 100644 (file)
@@ -119,11 +119,11 @@ closes it.
 
 Emitted when dragged files are dropped in the tray icon.
 
-### Event: 'drag-entered' _OS X_
+### Event: 'drag-enter' _OS X_
 
 Emitted when a drag operation enters the tray icon.
 
-### Event: 'drag-exited' _OS X_
+### Event: 'drag-leave' _OS X_
 
 Emitted when a drag operation exits the tray icon.