From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/document/models/text.js | 62 +++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'js/document/models/text.js') diff --git a/js/document/models/text.js b/js/document/models/text.js index acb70631..1786c660 100755 --- a/js/document/models/text.js +++ b/js/document/models/text.js @@ -30,19 +30,19 @@ POSSIBILITY OF SUCH DAMAGE. //////////////////////////////////////////////////////////////////////// // -var Montage = require("montage/core/core").Montage, - BaseDocumentModel = require("js/document/models/base").BaseDocumentModel; +var Montage = require("montage/core/core").Montage, + BaseDocumentModel = require("js/document/models/base").BaseDocumentModel; //////////////////////////////////////////////////////////////////////// -// +// exports.TextDocumentModel = Montage.create(BaseDocumentModel, { - //////////////////////////////////////////////////////////////////// - // - hasTemplate: { - enumerable: false, + //////////////////////////////////////////////////////////////////// + // + hasTemplate: { + enumerable: false, value: false }, //////////////////////////////////////////////////////////////////// - // + // save: { enumerable: false, value: function (callback) { @@ -58,37 +58,37 @@ exports.TextDocumentModel = Montage.create(BaseDocumentModel, { } }, //////////////////////////////////////////////////////////////////// - // + // handleSaved: { - value: function (result) { - // - if (result.status === 204) { - this.model.needsSave = false; - } - // - if (this.callback) this.callback(result); - } - }, + value: function (result) { + // + if (result.status === 204) { + this.model.needsSave = false; + } + // + if (this.callback) this.callback(result); + } + }, //////////////////////////////////////////////////////////////////// - // + // close: { value: function (view, callback) { - //Outcome of close (pending on save logic) - var success; - // - if (this.needsSave) { - //Prompt user to save of lose data - } else { - //Close file - success = true; - } - // + //Outcome of close (pending on save logic) + var success; + // + if (this.needsSave) { + //Prompt user to save of lose data + } else { + //Close file + success = true; + } + // this.parentContainer.removeChild(this.views.code.textViewContainer); this.application.ninja.stage.restoreAllPanels(); this.views.code = null; - // - return success; + // + return success; } } }); -- cgit v1.2.3 From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/document/models/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/document/models/text.js') diff --git a/js/document/models/text.js b/js/document/models/text.js index 1786c660..b81a2b13 100755 --- a/js/document/models/text.js +++ b/js/document/models/text.js @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. var Montage = require("montage/core/core").Montage, BaseDocumentModel = require("js/document/models/base").BaseDocumentModel; //////////////////////////////////////////////////////////////////////// -// +// exports.TextDocumentModel = Montage.create(BaseDocumentModel, { //////////////////////////////////////////////////////////////////// // -- cgit v1.2.3