Index: Source/WebCore/inspector/front-end/inspector.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/inspector.js (revision 129361) |
+++ Source/WebCore/inspector/front-end/inspector.js (working copy) |
@@ -86,7 +86,7 @@ |
if (!WebInspector.WorkerManager.isWorkerFrontend()) { |
this._nodeSearchButton = new WebInspector.StatusBarButton(WebInspector.UIString("Select an element in the page to inspect it."), "node-search-status-bar-item"); |
- this._nodeSearchButton.addEventListener("click", this._toggleSearchingForNode, this); |
+ this._nodeSearchButton.addEventListener("click", this.toggleSearchingForNode, this); |
mainStatusBar.insertBefore(this._nodeSearchButton.element, bottomStatusBarContainer); |
} |
@@ -356,7 +356,7 @@ |
InspectorFrontendHost.setZoomFactor(Math.pow(1.2, this._zoomLevel)); |
}, |
- _toggleSearchingForNode: function() |
+ toggleSearchingForNode: function() |
{ |
var enabled = !this._nodeSearchButton.toggled; |
/** |
@@ -862,7 +862,7 @@ |
var isNodeSearchKey = event.ctrlKey && !event.metaKey && !event.altKey && event.shiftKey; |
if (isNodeSearchKey) { |
- this._toggleSearchingForNode(); |
+ this.toggleSearchingForNode(); |
event.consume(true); |
return; |
} |