Fix context menu in devtools.

This commit is contained in:
Cheng Zhao 2014-07-09 15:41:16 +08:00
parent 2312f84ec9
commit 7b93a19e9b
3 changed files with 10 additions and 13 deletions

View file

@ -1,11 +1,7 @@
window.onload = ->
# Use menu API to show context menu.
WebInspector.ContextMenu.prototype.show = ->
menuObject = @_buildDescriptor()
if menuObject.length
WebInspector._contextMenu = this
createMenu(menuObject, @_event)
@_event.consume()
InspectorFrontendHost.showContextMenu = (event, items) ->
createMenu items, event
# Use dialog API to override file chooser dialog.
WebInspector.createFileSelectorElement = (callback) ->