Add hogfather basic structure.

This commit is contained in:
Ian Gulliver
2015-12-24 15:00:26 -08:00
parent 8b6f5c916d
commit 6e879ce1d5
2 changed files with 17 additions and 7 deletions

View File

@@ -21,8 +21,13 @@
* @constructor
* @param {Cosmopolite} cosmo
* @param {string} name
* @param {function()} onReady
*/
var Hogfather = function(cosmo, name) {
var Hogfather = function(cosmo, name, onReady) {
cosmo.getProfile().then(function(profile_id) {
this.prefix_ = '/hogfather/' + profile_id + '/' + name + '/';
onReady();
}.bind(this));
};