Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: Source/WebCore/inspector/front-end/ScriptsNavigator.js

Issue 9963015: Merge 112656 - Web Inspector: ScriptsNavigator should open scripts with single click (not double cl… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ScriptsNavigator.js
===================================================================
--- Source/WebCore/inspector/front-end/ScriptsNavigator.js (revision 112680)
+++ Source/WebCore/inspector/front-end/ScriptsNavigator.js (working copy)
@@ -569,10 +569,16 @@
return this._uiSourceCode;
},
+ onattach: function()
+ {
+ WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);
+ this.listItemElement.addEventListener("click", this._onclick.bind(this), false);
+ },
+
/**
* @param {Event} event
*/
- ondblclick: function(event)
+ _onclick: function(event)
{
this._navigator.scriptSelected(this.uiSourceCode);
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698