aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js9
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//
14exports.IoMediator = Montage.create(Object.prototype, { 14exports.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 ////////////////////////////////////////////////////////////////////