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/controllers/document.js | 2 +- js/document/document-html.js | 2 +- js/document/document-text.js | 2 +- js/document/helpers/url-parser.js | 2 +- js/document/helpers/webgl-helper.js | 4 +- js/document/mediators/io.js | 2 +- js/document/mediators/template.js | 180 ++++++++++++++++++------------------ js/document/models/base.js | 4 +- js/document/models/html.js | 4 +- js/document/models/text.js | 2 +- js/document/views/base.js | 2 +- js/document/views/design.js | 4 +- 12 files changed, 105 insertions(+), 105 deletions(-) (limited to 'js/document') diff --git a/js/document/controllers/document.js b/js/document/controllers/document.js index 8033c2e9..d897934a 100755 --- a/js/document/controllers/document.js +++ b/js/document/controllers/document.js @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; //////////////////////////////////////////////////////////////////////// -// +// exports.DocumentController = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // diff --git a/js/document/document-html.js b/js/document/document-html.js index a7a0f03a..1ebdd28a 100755 --- a/js/document/document-html.js +++ b/js/document/document-html.js @@ -35,7 +35,7 @@ var Montage = require("montage/core/core").Montage, HtmlDocumentModel = require("js/document/models/html").HtmlDocumentModel, DesignDocumentView = require("js/document/views/design").DesignDocumentView; //////////////////////////////////////////////////////////////////////// -// +// exports.HtmlDocument = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // 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, { //////////////////////////////////////////////////////////////////// // diff --git a/js/document/helpers/url-parser.js b/js/document/helpers/url-parser.js index c0c71511..353593eb 100755 --- a/js/document/helpers/url-parser.js +++ b/js/document/helpers/url-parser.js @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; //////////////////////////////////////////////////////////////////////// -// +// exports.UrlParser = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // diff --git a/js/document/helpers/webgl-helper.js b/js/document/helpers/webgl-helper.js index 86e2cdc1..93bc1e93 100755 --- a/js/document/helpers/webgl-helper.js +++ b/js/document/helpers/webgl-helper.js @@ -36,7 +36,7 @@ var Montage = require("montage/core/core").Montage, NJUtils = require("js/lib/NJUtils").NJUtils, GLWorld = require("js/lib/drawing/world").World; //////////////////////////////////////////////////////////////////////// -// +// exports.webGlDocumentHelper = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // @@ -68,7 +68,7 @@ exports.webGlDocumentHelper = Montage.create(Component, { } else { this._glData = null } - // + // return this._glData; }, // diff --git a/js/document/mediators/io.js b/js/document/mediators/io.js index 194eafa3..9f56a9ea 100755 --- a/js/document/mediators/io.js +++ b/js/document/mediators/io.js @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; //////////////////////////////////////////////////////////////////////// -// +// exports.IoDocumentMediator = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // diff --git a/js/document/mediators/template.js b/js/document/mediators/template.js index 6ab58e32..7451ffa2 100755 --- a/js/document/mediators/template.js +++ b/js/document/mediators/template.js @@ -35,7 +35,7 @@ var Montage = require("montage/core/core").Montage, TemplateCreator = require("node_modules/tools/template/template-creator").TemplateCreator, ClassUuid = require("js/components/core/class-uuid").ClassUuid; //////////////////////////////////////////////////////////////////////// -// +// exports.TemplateDocumentMediator = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // @@ -167,7 +167,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, { for (var n in template.body.attributes) { if (template.body.attributes[n].value) { template.file.content.document.body.setAttribute(template.body.attributes[n].name, template.body.attributes[n].value); - } + } } // if(template.template) { @@ -233,7 +233,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, { for (var n in presentNodes) { // if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') === null) { - toremovetags.push(presentNodes[n]); + toremovetags.push(presentNodes[n]); } else if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') !== null) { //Removing attribute presentNodes[n].removeAttribute('data-ninja-node'); @@ -243,7 +243,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, { var styletags = template.file.content.document.getElementsByTagName('style'), linktags = template.file.content.document.getElementsByTagName('link'), njtemplatetags = template.file.content.document.querySelectorAll('[data-ninja-template]'); - + //Adding to tags to be removed form template for (var f in njtemplatetags) { if (njtemplatetags[f].getAttribute) toremovetags.push(njtemplatetags[f]); @@ -266,7 +266,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, { //Checking head first template.file.content.document.head.removeChild(toremovetags[h]); } catch (e) { - + } try { //Checking body if not in head @@ -287,23 +287,23 @@ exports.TemplateDocumentMediator = Montage.create(Component, { } } } - - - - - - - - - - - - - + + + + + + + + + + + + + //TODO: Make proper CSS method - - - + + + //Checking for type of save: styles =