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/document-text.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'js/document/document-text.js') diff --git a/js/document/document-text.js b/js/document/document-text.js index fd01b2e6..2eb88022 100755 --- a/js/document/document-text.js +++ b/js/document/document-text.js @@ -30,19 +30,19 @@ POSSIBILITY OF SUCH DAMAGE. //////////////////////////////////////////////////////////////////////// // -var Montage = require("montage/core/core").Montage, - Component = require("montage/ui/component").Component, +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component, TextDocumentModel = require("js/document/models/text").TextDocumentModel, - CodeDocumentView = require("js/document/views/code").CodeDocumentView; + CodeDocumentView = require("js/document/views/code").CodeDocumentView; //////////////////////////////////////////////////////////////////////// -// +// exports.TextDocument = Montage.create(Component, { - //////////////////////////////////////////////////////////////////// - // - hasTemplate: { + //////////////////////////////////////////////////////////////////// + // + hasTemplate: { value: false }, - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// // model: { value: null @@ -51,7 +51,7 @@ exports.TextDocument = Montage.create(Component, { // init:{ value: function(file, context, callback, view){ - // + // var codeDocumentView = CodeDocumentView.create(), container = null; //TODO: Why is this initilzied to null? //Creating instance of Text Document Model this.model = Montage.create(TextDocumentModel,{ @@ -72,22 +72,22 @@ exports.TextDocument = Montage.create(Component, { codeDocumentView.textArea.value = file.content; codeDocumentView.initializeTextView(file, this); } else { - //Other view(s) logic goes here + //Other view(s) logic goes here } //Checking if callback is needed if (callback) callback.call(context, this); } }, //////////////////////////////////////////////////////////////////// - // - closeDocument: { - value: function (context, callback) { - //Closing document and getting outcome - var closed = this.model.close(null); - //Making callback if specified - if (callback) callback.call(context, this); - } - } + // + closeDocument: { + value: function (context, callback) { + //Closing document and getting outcome + var closed = this.model.close(null); + //Making callback if specified + if (callback) callback.call(context, this); + } + } //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// }); -- 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/document-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/document/document-text.js') diff --git a/js/document/document-text.js b/js/document/document-text.js index 2eb88022..3ffa8263 100755 --- a/js/document/document-text.js +++ b/js/document/document-text.js @@ -35,7 +35,7 @@ var Montage = require("montage/core/core").Montage, TextDocumentModel = require("js/document/models/text").TextDocumentModel, CodeDocumentView = require("js/document/views/code").CodeDocumentView; //////////////////////////////////////////////////////////////////////// -// +// exports.TextDocument = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // -- cgit v1.2.3