diff options
author | Valerio Virgillito | 2012-02-22 00:49:47 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-22 00:49:47 -0800 |
commit | 8974ecd564563a991ff96f9cb6d47da172174242 (patch) | |
tree | 4518e1f28193000f737bd1297397f5a1f3a87b6e /js/data | |
parent | 2f24dafec79583547fe663d5a387d8ef15aae3bf (diff) | |
download | ninja-8974ecd564563a991ff96f9cb6d47da172174242.tar.gz |
local storage integration and versioning
- Fixed the splitters
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/data')
-rwxr-xr-x | js/data/settings.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/js/data/settings.js b/js/data/settings.js index ffea2075..6b1af3fc 100755 --- a/js/data/settings.js +++ b/js/data/settings.js | |||
@@ -10,10 +10,6 @@ var Montage = require("montage/core/core").Montage, | |||
10 | 10 | ||
11 | exports.Settings = Montage.create( Component, { | 11 | exports.Settings = Montage.create( Component, { |
12 | 12 | ||
13 | version: { | ||
14 | value: "11.1213" | ||
15 | }, | ||
16 | |||
17 | _settings: { | 13 | _settings: { |
18 | value: null | 14 | value: null |
19 | }, | 15 | }, |
@@ -54,18 +50,5 @@ exports.Settings = Montage.create( Component, { | |||
54 | return null; | 50 | return null; |
55 | } | 51 | } |
56 | } | 52 | } |
57 | }, | ||
58 | |||
59 | deserializedFromSerialization: { | ||
60 | value: function() { | ||
61 | |||
62 | if (LocalStorage.getItem("version") != this.version) { | ||
63 | this.settings = {} | ||
64 | LocalStorage.setItem("version",this.version); | ||
65 | } else { | ||
66 | this.settings = LocalStorage.getItem("settings"); | ||
67 | } | ||
68 | |||
69 | } | ||
70 | } | 53 | } |
71 | }); \ No newline at end of file | 54 | }); \ No newline at end of file |