Move onDrop global to WindowEventHandler

This commit is contained in:
Kevin Sawicki
2013-09-30 13:40:35 -07:00
parent c7bc92f6e7
commit dde7ccadd4
3 changed files with 17 additions and 9 deletions

View File

@@ -86,12 +86,6 @@ installApmCommand = (callback) ->
commandPath = path.join(window.resourcePath, 'node_modules', '.bin', 'apm')
require('./command-installer').install(commandPath, callback)
window.onDrop = (e) ->
e.preventDefault()
e.stopPropagation()
pathsToOpen = _.pluck(e.originalEvent.dataTransfer.files, 'path')
atom.open({pathsToOpen}) if pathsToOpen.length > 0
window.deserializeEditorWindow = ->
atom.deserializePackageStates()
atom.deserializeProject()