diff options
author | Ananya Sen | 2012-02-03 17:22:48 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-03 17:22:48 -0800 |
commit | 1daf146c849a0a8dbd2b61b14218c9a39bdee3a7 (patch) | |
tree | af5568f4adac1371ee8b533c34198fb72545e778 /js/mediators | |
parent | 7618cabe1945acc6392c48f3b57820f67f7973b0 (diff) | |
download | ninja-1daf146c849a0a8dbd2b61b14218c9a39bdee3a7.tar.gz |
added editor tab save while switching code view tabs,
integrated new file dialog with io mediator to open the new file in a new tab
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r-- | js/mediators/io-mediator.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 8d0a671e..3d75771f 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js | |||
@@ -11,14 +11,17 @@ var Montage = require("montage/core/core").Montage, | |||
11 | ProjectIo = require("js/io/system/projectio").ProjectIo; | 11 | ProjectIo = require("js/io/system/projectio").ProjectIo; |
12 | //////////////////////////////////////////////////////////////////////// | 12 | //////////////////////////////////////////////////////////////////////// |
13 | // | 13 | // |
14 | exports.IoMediator = Montage.create(Object.prototype, { | 14 | exports.IoMediator = Montage.create(require("montage/ui/component").Component, { |
15 | //////////////////////////////////////////////////////////////////// | 15 | //////////////////////////////////////////////////////////////////// |
16 | // | 16 | // |
17 | fileNew: { | 17 | fileNew: { |
18 | enumerable: false, | 18 | enumerable: false, |
19 | value: function (file, template, callback) { | 19 | value: function (file, template, callback, callbackScope) { |
20 | // | 20 | // |
21 | 21 | ||
22 | |||
23 | var returnObj = null; //like {"type": "js", "name": "filename", "source": "test file content", "uri": "/fs/fsd/"} | ||
24 | callback.call(callbackScope, returnObj); | ||
22 | } | 25 | } |
23 | }, | 26 | }, |
24 | //////////////////////////////////////////////////////////////////// | 27 | //////////////////////////////////////////////////////////////////// |