From ede823d62cf7475697171249fb479a9d0ba737b5 Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Fri, 6 Jun 2014 18:17:30 +0100 Subject: [PATCH] fixed bug in persistence module --- docs/release-notes.md | 3 +++ nbproject/ide-targets.xml | 14 -------------- src/main/js/lib/persistence.js | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 nbproject/ide-targets.xml diff --git a/docs/release-notes.md b/docs/release-notes.md index e456288..0b550f0 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,6 @@ +# 2014 05 31 +Fix bug in persistence module. Private load function wasn't returning result of scload. + # 2014 05 29 Fix tab completion for /jsp command so that it conforms with tab completion norms in minecraft. /jsp ice completes to /jsp icecream diff --git a/nbproject/ide-targets.xml b/nbproject/ide-targets.xml deleted file mode 100644 index efb4aa5..0000000 --- a/nbproject/ide-targets.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Starting Bukkit with ScriptCraft - - - - - - - diff --git a/src/main/js/lib/persistence.js b/src/main/js/lib/persistence.js index 1b82231..fae3526 100644 --- a/src/main/js/lib/persistence.js +++ b/src/main/js/lib/persistence.js @@ -4,7 +4,7 @@ var _dataDir = null, module.exports = function( rootDir, $ ) { var _load = function( name ) { - $.scload( _dataDir.canonicalPath + '/' + name + '-store.json' ); + return $.scload( _dataDir.canonicalPath + '/' + name + '-store.json' ); }; var _save = function( name, data ) { $.scsave( data, _dataDir.canonicalPath + '/' + name + '-store.json' );