| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 if (error) | 87 if (error) |
| 88 return; | 88 return; |
| 89 | 89 |
| 90 var selectedNodeOnly = "selected" === WebInspector.settings.eventLis
tenersFilter.get(); | 90 var selectedNodeOnly = "selected" === WebInspector.settings.eventLis
tenersFilter.get(); |
| 91 var sectionNames = []; | 91 var sectionNames = []; |
| 92 var sectionMap = {}; | 92 var sectionMap = {}; |
| 93 for (var i = 0; i < eventListeners.length; ++i) { | 93 for (var i = 0; i < eventListeners.length; ++i) { |
| 94 var eventListener = eventListeners[i]; | 94 var eventListener = eventListeners[i]; |
| 95 if (selectedNodeOnly && (node.id !== eventListener.nodeId)) | 95 if (selectedNodeOnly && (node.id !== eventListener.nodeId)) |
| 96 continue; | 96 continue; |
| 97 eventListener.node = WebInspector.domAgent.nodeForId(eventListen
er.nodeId); | 97 eventListener.node = WebInspector.domModel.nodeForId(eventListen
er.nodeId); |
| 98 delete eventListener.nodeId; // no longer needed | 98 delete eventListener.nodeId; // no longer needed |
| 99 if (/^function _inspectorCommandLineAPI_logEvent\(/.test(eventLi
stener.handlerBody.toString())) | 99 if (/^function _inspectorCommandLineAPI_logEvent\(/.test(eventLi
stener.handlerBody.toString())) |
| 100 continue; // ignore event listeners generated by monitorEven
t | 100 continue; // ignore event listeners generated by monitorEven
t |
| 101 var type = eventListener.type; | 101 var type = eventListener.type; |
| 102 var section = sectionMap[type]; | 102 var section = sectionMap[type]; |
| 103 if (!section) { | 103 if (!section) { |
| 104 section = new WebInspector.EventListenersSection(type, node.
id, self._linkifier); | 104 section = new WebInspector.EventListenersSection(type, node.
id, self._linkifier); |
| 105 sectionMap[type] = section; | 105 sectionMap[type] = section; |
| 106 sectionNames.push(type); | 106 sectionNames.push(type); |
| 107 self.sections.push(section); | 107 self.sections.push(section); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 var url = this.eventListener.sourceName; | 258 var url = this.eventListener.sourceName; |
| 259 var lineNumber = this.eventListener.location.lineNumber; | 259 var lineNumber = this.eventListener.location.lineNumber; |
| 260 var columnNumber = 0; | 260 var columnNumber = 0; |
| 261 urlElement = linkifier.linkifyLocation(url, lineNumber, columnNumber
); | 261 urlElement = linkifier.linkifyLocation(url, lineNumber, columnNumber
); |
| 262 } | 262 } |
| 263 this.subtitleElement.appendChild(urlElement); | 263 this.subtitleElement.appendChild(urlElement); |
| 264 }, | 264 }, |
| 265 | 265 |
| 266 __proto__: WebInspector.ObjectPropertiesSection.prototype | 266 __proto__: WebInspector.ObjectPropertiesSection.prototype |
| 267 } | 267 } |
| OLD | NEW |