Event "close" => "closed", fix #2149

This commit is contained in:
Cheng Zhao 2015-07-10 10:38:15 +08:00
parent fedf764b7b
commit 4379d24e9d
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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()