diff options
author | Jose Antonio Marquez | 2012-02-14 11:45:57 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-14 11:45:57 -0800 |
commit | 646b269da2387582531258d14a3f2ff550617323 (patch) | |
tree | 41e3ac0983aeae883fae0bd1165de7b66de83650 /js/mediators | |
parent | a956f7919cf43424c2675cce24c5637f9064dcb3 (diff) | |
download | ninja-646b269da2387582531258d14a3f2ff550617323.tar.gz |
Cleaning up mediator
Diffstat (limited to 'js/mediators')
-rw-r--r-- | js/mediators/io-mediator.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 95e775a0..599b7d84 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js | |||
@@ -155,9 +155,8 @@ exports.IoMediator = Montage.create(Component, { | |||
155 | } | 155 | } |
156 | // | 156 | // |
157 | save = this.fio.saveFile({uri: file.document.uri, contents: contents}); | 157 | save = this.fio.saveFile({uri: file.document.uri, contents: contents}); |
158 | if(save.status === 204){ | 158 | // |
159 | callback(); | 159 | if (callback) callback(save); |
160 | } | ||
161 | } | 160 | } |
162 | }, | 161 | }, |
163 | //////////////////////////////////////////////////////////////////// | 162 | //////////////////////////////////////////////////////////////////// |
@@ -170,6 +169,14 @@ exports.IoMediator = Montage.create(Component, { | |||
170 | }, | 169 | }, |
171 | //////////////////////////////////////////////////////////////////// | 170 | //////////////////////////////////////////////////////////////////// |
172 | // | 171 | // |
172 | fileDelete: { | ||
173 | enumerable: false, | ||
174 | value: function (file, callback) { | ||
175 | // | ||
176 | } | ||
177 | }, | ||
178 | //////////////////////////////////////////////////////////////////// | ||
179 | // | ||
173 | parseHtmlToNinjaTemplate: { | 180 | parseHtmlToNinjaTemplate: { |
174 | enumerable: false, | 181 | enumerable: false, |
175 | value: function (html) { | 182 | value: function (html) { |