diff options
author | Valerio Virgillito | 2012-02-24 13:27:33 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-24 13:27:33 -0800 |
commit | f97080989ee988c1e613915c2d246dc17b104b3b (patch) | |
tree | e8632f5a4537a93263658341cf5941b1baff5ca1 /js/panels/Splitter.js | |
parent | 2b672f6508a849b8023b0bc114ad15e9ddca5adc (diff) | |
download | ninja-f97080989ee988c1e613915c2d246dc17b104b3b.tar.gz |
clearing the old local setting and using the new version/prefix local settings.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Splitter.js')
-rwxr-xr-x | js/panels/Splitter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/Splitter.js b/js/panels/Splitter.js index cb05104d..3215e928 100755 --- a/js/panels/Splitter.js +++ b/js/panels/Splitter.js | |||
@@ -56,14 +56,14 @@ exports.Splitter = Montage.create(Component, { | |||
56 | set: function(value) { | 56 | set: function(value) { |
57 | this._collapsed = value; | 57 | this._collapsed = value; |
58 | 58 | ||
59 | this.application.localStorage._setItem(this.element.getAttribute("data-montage-id"), {"version": this.version, "value": value}); | 59 | this.application.localStorage.setItem(this.element.getAttribute("data-montage-id"), {"version": this.version, "value": value}); |
60 | } | 60 | } |
61 | }, | 61 | }, |
62 | 62 | ||
63 | prepareForDraw: { | 63 | prepareForDraw: { |
64 | value: function() { | 64 | value: function() { |
65 | //Get splitter initial value from SettingManager | 65 | //Get splitter initial value from SettingManager |
66 | var storedData = this.application.localStorage._getItem(this.element.getAttribute("data-montage-id")); | 66 | var storedData = this.application.localStorage.getItem(this.element.getAttribute("data-montage-id")); |
67 | if(storedData && this.element.getAttribute("data-montage-id") !== null) { | 67 | if(storedData && this.element.getAttribute("data-montage-id") !== null) { |
68 | this._collapsed = storedData.value; | 68 | this._collapsed = storedData.value; |
69 | } else { | 69 | } else { |