From 0d3acbcbe264f318b00e15e2dd1b9eff2e929203 Mon Sep 17 00:00:00 2001 From: Toby Schachman Date: Tue, 10 Nov 2015 15:25:16 -0800 Subject: [PATCH] Bumped version to 0.4.1. Got rid of version check in Editor.load for now. --- package.json | 2 +- src/Model/Editor.coffee | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 762cef2..596cdb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apparatus-editor", - "version": "0.4.0", + "version": "0.4.1", "description": "Apparatus is a hybrid graphics editor / programming environment for creating interactive diagrams.", "license": "MIT", "author": { diff --git a/src/Model/Editor.coffee b/src/Model/Editor.coffee index 7e58c69..3b099cc 100644 --- a/src/Model/Editor.coffee +++ b/src/Model/Editor.coffee @@ -50,11 +50,13 @@ module.exports = class Editor return builtIn # TODO: get version via build process / ENV variable? - version: "0.4.0" + version: "0.4.1" load: (jsonString) -> json = JSON.parse(jsonString) - if json.type == "Apparatus" and json.version == @version + # TODO: If the file format changes, this will need to check the version + # and convert or fail appropriately. + if json.type == "Apparatus" @project = @serializer.dejsonify(json) save: ->