Index: Source/devtools/front_end/sources/BreakpointsSidebarPane.js |
diff --git a/Source/devtools/front_end/sources/BreakpointsSidebarPane.js b/Source/devtools/front_end/sources/BreakpointsSidebarPane.js |
index 9c60bd59eede5452a2a5f92c40a9548bd2dbaf3a..b058481aa763fffe52c7ef5dbf766dc61f306bc2 100644 |
--- a/Source/devtools/front_end/sources/BreakpointsSidebarPane.js |
+++ b/Source/devtools/front_end/sources/BreakpointsSidebarPane.js |
@@ -529,7 +529,7 @@ WebInspector.EventListenerBreakpointsSidebarPane = function() |
// Otherwise, inspector page reacts on drop event and tries to load the event data. |
// this._createCategory(WebInspector.UIString("Drag"), ["drag", "drop", "dragstart", "dragend", "dragenter", "dragleave", "dragover"]); |
this._createCategory(WebInspector.UIString("Animation"), ["requestAnimationFrame", "cancelAnimationFrame", "animationFrameFired"], true); |
- this._createCategory(WebInspector.UIString("Control"), ["resize", "scroll", "zoom", "focus", "blur", "select", "change", "submit", "reset"]); |
+ this._createCategory(WebInspector.UIString("Control"), ["resize", "scroll", "zoom", "focus", "blur", "select", "change", "submit", "reset", "instrumentation:close"]); |
this._createCategory(WebInspector.UIString("Clipboard"), ["copy", "cut", "paste", "beforecopy", "beforecut", "beforepaste"]); |
this._createCategory(WebInspector.UIString("DOM Mutation"), ["DOMActivate", "DOMFocusIn", "DOMFocusOut", "DOMAttrModified", "DOMCharacterDataModified", "DOMNodeInserted", "DOMNodeInsertedIntoDocument", "DOMNodeRemoved", "DOMNodeRemovedFromDocument", "DOMSubtreeModified", "DOMContentLoaded"]); |
this._createCategory(WebInspector.UIString("Device"), ["deviceorientation", "devicemotion"]); |
@@ -605,7 +605,10 @@ WebInspector.EventListenerBreakpointsSidebarPane.prototype = { |
categoryItem.children = {}; |
var category = (isInstrumentationEvent ? WebInspector.EventListenerBreakpointsSidebarPane.categoryInstrumentation : WebInspector.EventListenerBreakpointsSidebarPane.categoryListener); |
for (var i = 0; i < eventNames.length; ++i) { |
- var eventName = category + eventNames[i]; |
+ var eventName = eventNames[i]; |
+ if (eventName.indexOf(':') === -1) { |
pfeldman
2014/07/22 08:57:40
This does not look particularly nice. We should ei
|
+ eventName = category + eventName; |
+ } |
var breakpointItem = {}; |
var title = WebInspector.EventListenerBreakpointsSidebarPane.eventNameForUI(eventName); |