Event "close" => "closed", fix #2149
This commit is contained in:
parent
fedf764b7b
commit
4379d24e9d
2 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,7 @@ void WebContents::MoveContents(content::WebContents* source,
|
|||
}
|
||||
|
||||
void WebContents::CloseContents(content::WebContents* source) {
|
||||
Emit("closed");
|
||||
Emit("close");
|
||||
if (type_ == BROWSER_WINDOW)
|
||||
owner_window()->CloseContents(source);
|
||||
}
|
||||
|
|
|
@ -192,7 +192,7 @@ describe '<webview> tag', ->
|
|||
document.body.appendChild webview
|
||||
|
||||
describe 'close event', ->
|
||||
it 'should fire when interior page calls window.close', ->
|
||||
it 'should fire when interior page calls window.close', (done) ->
|
||||
webview.addEventListener 'close', ->
|
||||
done()
|
||||
|
||||
|
|
Loading…
Reference in a new issue