From 18cfb467afc67b186c607ff77e8ec1eece935169 Mon Sep 17 00:00:00 2001 From: Shaunak Kishore Date: Thu, 29 Oct 2015 02:29:31 -0400 Subject: [PATCH] Turn on persistence layer --- client/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/editor.js b/client/editor.js index 9675eaae..6d9a04b1 100644 --- a/client/editor.js +++ b/client/editor.js @@ -118,7 +118,8 @@ Tracker.autorun(() => { types.map((x) => { if (glyph.stages[x]) last_completed_stage = x; }); constructStage(last_completed_stage); } else { - // TODO(skishore): Save the glyph at this point. + Meteor.call('saveGlyph', glyph, + (error, data) => { if (error) console.error(error) }); if (!_.isEqual(glyph.metadata, last_glyph.metadata)) { stage.refreshUI(glyph.character, glyph.metadata); }