Fix construction of `WI.EventBreakpoint` after r248201
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Aug 2019 02:36:33 +0000 (02:36 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Aug 2019 02:36:33 +0000 (02:36 +0000)
Reviewed by Joseph Pecoraro.

* UserInterface/Controllers/DOMManager.js:
(WI.DOMManager.prototype.setBreakpointForEventListener):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248400 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/DOMManager.js

index e6e33cc..06637a2 100644 (file)
@@ -1,5 +1,14 @@
 2019-08-07  Devin Rousso  <drousso@apple.com>
 
+        Fix construction of `WI.EventBreakpoint` after r248201
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Controllers/DOMManager.js:
+        (WI.DOMManager.prototype.setBreakpointForEventListener):
+
+2019-08-07  Devin Rousso  <drousso@apple.com>
+
         Web Inspector: Settings: add an Engineering pane to expose useful settings for other WebKit engineers
         https://bugs.webkit.org/show_bug.cgi?id=200492
 
index 305d9a9..9378e7e 100644 (file)
@@ -618,7 +618,7 @@ WI.DOMManager = class DOMManager extends WI.Object
             return;
         }
 
-        breakpoint = new WI.EventBreakpoint(WI.EventBreakpoint.Type.Listener, eventListener.type, {eventListener});
+        breakpoint = new WI.EventBreakpoint(WI.EventBreakpoint.Type.Listener, {eventName: eventListener.type, eventListener});
         console.assert(!breakpoint.disabled);
 
         this._breakpointsForEventListeners.set(eventListener.eventListenerId, breakpoint);