]> khamidou — GitHub mirrors - electron.git/commitdiff
Remove unneeded cleanup code
authorCheng Zhao <zcbenz@gmail.com>
Sat, 25 Oct 2014 15:09:45 +0000 (23:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 25 Oct 2014 15:09:45 +0000 (23:09 +0800)
atom/browser/api/lib/web-contents.coffee

index 318769eab535c74f7ae45a4ab88e6c342d157a49..fa4bed48692381763617366200b94440365134b3 100644 (file)
@@ -43,9 +43,4 @@ module.exports.wrap = (webContents) ->
   webContents
 
 module.exports.create = (options={}) ->
-  webContents = @wrap binding.create(options)
-
-  # Ensure the webContents is destroyed on exit.
-  process.on 'exit', -> webContents.destroy()
-
-  webContents
+  @wrap binding.create(options)