From f98147ea014734e02b43dec6170783b1ac43f3d2 Mon Sep 17 00:00:00 2001 From: Nishanth Shanmugham Date: Tue, 10 Nov 2015 09:27:39 -0600 Subject: [PATCH] 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 --- atom/browser/api/atom_api_tray.cc | 4 ++-- docs/api/tray.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atom/browser/api/atom_api_tray.cc b/atom/browser/api/atom_api_tray.cc index 5381c77..00b8eda 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 5d187fc..37e17d8 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. -- 2.7.4