Clean up coffee files
authorCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 14:11:59 +0000 (22:11 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 14:11:59 +0000 (22:11 +0800)
atom/browser/api/lib/browser-window.coffee
atom/browser/api/lib/web-contents.coffee

index fc4667a..aa27176 100644 (file)
@@ -79,8 +79,6 @@ BrowserWindow::getPageTitle = -> @webContents.getTitle()
 BrowserWindow::isLoading = -> @webContents.isLoading()
 BrowserWindow::isWaitingForResponse = -> @webContents.isWaitingForResponse()
 BrowserWindow::stop = -> @webContents.stop()
-BrowserWindow::getRoutingId = -> @webContents.getRoutingId()
-BrowserWindow::getProcessId = -> @webContents.getProcessId()
 BrowserWindow::isCrashed = -> @webContents.isCrashed()
 BrowserWindow::executeJavaScriptInDevTools = (code) -> @devToolsWebContents?.executeJavaScript code
 BrowserWindow::openDevTools = -> @webContents.openDevTools.apply @webContents, arguments
index 35c11df..c07c541 100644 (file)
@@ -79,9 +79,7 @@ wrapWebContents = (webContents) ->
     if options.printBackgrounds
       printingSetting.shouldPrintBackgrounds = options.printBackground
 
-    webContents._printToPDF printingSetting, callback
-
-  webContents
+    @_printToPDF printingSetting, callback
 
 binding._setWrapWebContents wrapWebContents
 process.once 'exit', binding._clearWrapWebContents