Renamed various functions that are internal to the Console object to have an undersco...
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 22:18:33 +0000 (22:18 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 22:18:33 +0000 (22:18 +0000)
Rubber-stamped by Adam Roben.

* page/inspector/Console.js:

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

WebCore/ChangeLog
WebCore/page/inspector/Console.js

index 2d5a40d..fdae469 100644 (file)
@@ -1,5 +1,14 @@
 2008-04-07  Timothy Hatcher  <timothy@apple.com>
 
+        Renamed various functions that are internal to the Console
+        object to have an underscore prefix.
+
+        Rubber-stamped by Adam Roben.
+
+        * page/inspector/Console.js:
+
+2008-04-07  Timothy Hatcher  <timothy@apple.com>
+
         Renamed various functions and properties that are internal
         to an object to have an underscore prefix.
 
index e0351ac..7b69e6c 100644 (file)
@@ -34,13 +34,13 @@ WebInspector.ConsolePanel = function()
 
     this.messagesElement = document.createElement("div");
     this.messagesElement.id = "console-messages";
-    this.messagesElement.addEventListener("selectstart", this.messagesSelectStart.bind(this), true);
-    this.messagesElement.addEventListener("click", this.messagesClicked.bind(this), true);
+    this.messagesElement.addEventListener("selectstart", this._messagesSelectStart.bind(this), true);
+    this.messagesElement.addEventListener("click", this._messagesClicked.bind(this), true);
     this.element.appendChild(this.messagesElement);
 
     this.promptElement = document.createElement("div");
     this.promptElement.id = "console-prompt";
-    this.promptElement.addEventListener("keydown", this.promptKeyDown.bind(this), false);
+    this.promptElement.addEventListener("keydown", this._promptKeyDown.bind(this), false);
     this.promptElement.appendChild(document.createElement("br"));
     this.messagesElement.appendChild(this.promptElement);
 
@@ -49,7 +49,7 @@ WebInspector.ConsolePanel = function()
     this.clearButton = document.createElement("button");
     this.clearButton.title = WebInspector.UIString("Clear");
     this.clearButton.textContent = WebInspector.UIString("Clear");
-    this.clearButton.addEventListener("click", this.clearButtonClicked.bind(this), false);
+    this.clearButton.addEventListener("click", this._clearButtonClicked.bind(this), false);
 }
 
 WebInspector.ConsolePanel.prototype = {
@@ -172,12 +172,12 @@ WebInspector.ConsolePanel.prototype = {
         return results;
     },
 
-    clearButtonClicked: function()
+    _clearButtonClicked: function()
     {
         this.clearMessages();
     },
 
-    messagesSelectStart: function(event)
+    _messagesSelectStart: function(event)
     {
         if (this._selectionTimeout)
             clearTimeout(this._selectionTimeout);
@@ -195,7 +195,7 @@ WebInspector.ConsolePanel.prototype = {
         this._selectionTimeout = setTimeout(moveBackIfOutside.bind(this), 100);
     },
 
-    messagesClicked: function(event)
+    _messagesClicked: function(event)
     {
         var link = event.target.enclosingNodeOrSelfWithNodeName("a");
         if (link && link.representedNode) {
@@ -223,7 +223,7 @@ WebInspector.ConsolePanel.prototype = {
         event.preventDefault();
     },
 
-    promptKeyDown: function(event)
+    _promptKeyDown: function(event)
     {
         switch (event.keyIdentifier) {
             case "Enter":