From: Cheng Zhao Date: Wed, 2 Dec 2015 09:29:58 +0000 (+0800) Subject: Deprecating a property with method of same name causes trouble X-Git-Tag: v0.35.3~11 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=202475f5a98cf4530845b80c87cd6c218059dc82;p=electron.git Deprecating a property with method of same name causes trouble Close #3511. --- diff --git a/atom/browser/api/lib/app.coffee b/atom/browser/api/lib/app.coffee index 4d1803a0..d0ec41c4 100644 --- a/atom/browser/api/lib/app.coffee +++ b/atom/browser/api/lib/app.coffee @@ -65,7 +65,6 @@ wrapDownloadItem = (downloadItem) -> deprecate.property downloadItem, 'url', 'getURL' deprecate.property downloadItem, 'filename', 'getFilename' deprecate.property downloadItem, 'mimeType', 'getMimeType' - deprecate.property downloadItem, 'hasUserGesture', 'hasUserGesture' deprecate.rename downloadItem, 'getUrl', 'getURL' downloadItemBindings._setWrapDownloadItem wrapDownloadItem