From 918243b296934db4fbd1deee42fb56820028a508 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 8 Jan 2016 15:15:56 -0800 Subject: [PATCH] Make hogfather.PublicChat.Start() private. --- static/hogfather.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/hogfather.js b/static/hogfather.js index 1fb90e0..bc3fe4a 100644 --- a/static/hogfather.js +++ b/static/hogfather.js @@ -72,7 +72,7 @@ hogfather.PublicChat.Create = function(cosmo) { hogfather.PublicChat.Join = function(cosmo, id) { return new Promise(function(resolve, reject) { var chat = new hogfather.PublicChat(cosmo, id); - chat.Start().then(function() { + chat.Start_().then(function() { resolve(chat); }).catch(function(err) { reject(err); @@ -83,8 +83,9 @@ hogfather.PublicChat.Join = function(cosmo, id) { /** * @return {Promise} + * @private */ -hogfather.PublicChat.prototype.Start = function() { +hogfather.PublicChat.prototype.Start_ = function() { return new Promise(function(resolve, reject) { this.cosmo_.subscribe(this.subject_, -1).then(function() { console.log(this.loggingPrefix_(), 'ready');