]> git.wh0rd.org - chrome-ext/music-player-client.git/blobdiff - js/tcp-client.js
controls: add shortcut keys for a bunch of items
[chrome-ext/music-player-client.git] / js / tcp-client.js
index c46921f2396d48d263e326f9ed7c04dd08ec3798..ed3b598126db85ed7b51d930337771921bc58fe1 100644 (file)
@@ -124,7 +124,7 @@ Author: Boris Smus (smus@chromium.org)
    */
   TcpClient.prototype._onConnectComplete = function(resultCode) {
     // Start polling for reads.
-    setInterval(this._periodicallyRead.bind(this), 500);
+    setInterval(this.poll.bind(this), 500);
 
     if (this.callbacks.connect) {
       log('connect complete');
@@ -138,7 +138,7 @@ Author: Boris Smus (smus@chromium.org)
    *
    * @see http://developer.chrome.com/apps/socket.html#method-read
    */
-  TcpClient.prototype._periodicallyRead = function() {
+  TcpClient.prototype.poll = function() {
     socket.read(this.socketId, null, this._onDataRead.bind(this));
   };