projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0ee301
)
Keep compatibility with old APIs.
author
Haojian Wu
<hokein.wu@gmail.com>
Mon, 21 Sep 2015 01:38:06 +0000
(09:38 +0800)
committer
Haojian Wu
<hokein.wu@gmail.com>
Mon, 21 Sep 2015 01:38:06 +0000
(09:38 +0800)
atom/browser/api/lib/app.coffee
patch
|
blob
|
history
diff --git
a/atom/browser/api/lib/app.coffee
b/atom/browser/api/lib/app.coffee
index
39f6395
..
3bf85c5
100644
(file)
--- a/
atom/browser/api/lib/app.coffee
+++ b/
atom/browser/api/lib/app.coffee
@@
-14,6
+14,11
@@
wrapSession = (session) ->
wrapDownloadItem = (download_item) ->
# download_item is an Event Emitter.
download_item.__proto__ = EventEmitter.prototype
+ # Be compatible with old APIs.
+ download_item.url = download_item.getURL()
+ download_item.filename = download_item.getSuggestedFilename()
+ download_item.mimeType = download_item.getMimeType()
+ download_item.hasUserGesture = download_item.hasUserGesture()
app.setApplicationMenu = (menu) ->
require('menu').setApplicationMenu menu