From: Nishanth Shanmugham Date: Tue, 10 Nov 2015 15:27:39 +0000 (-0600) Subject: Tray: Rename events to drag-enter and drag-leave X-Git-Tag: v0.35.0~22^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f98147ea014734e02b43dec6170783b1ac43f3d2;p=electron.git Tray: Rename events to drag-enter and drag-leave Previously, the names were drag-entered and drag-exited. The new names mirror the HTML Drag and Drop event names --- diff --git a/atom/browser/api/atom_api_tray.cc b/atom/browser/api/atom_api_tray.cc index 5381c77c..00b8eda7 100644 --- a/atom/browser/api/atom_api_tray.cc +++ b/atom/browser/api/atom_api_tray.cc @@ -79,11 +79,11 @@ void Tray::OnDropFiles(const std::vector& files) { } void Tray::OnDragEntered() { - Emit("drag-entered"); + Emit("drag-enter"); } void Tray::OnDragExited() { - Emit("drag-exited"); + Emit("drag-leave"); } bool Tray::IsDestroyed() const { diff --git a/docs/api/tray.md b/docs/api/tray.md index 5d187fc5..37e17d88 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -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.