Skip to content

Commit

Permalink
Bumped version to 0.4.1. Got rid of version check in Editor.load for …
Browse files Browse the repository at this point in the history
…now.
  • Loading branch information
electronicwhisper committed Nov 10, 2015
1 parent 1766012 commit 0d3acbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions src/Model/Editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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: ->
Expand Down

0 comments on commit 0d3acbc

Please sign in to comment.