aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:53:10 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit04343eda8c2f870b0da55cfdc8003c99fe1cc4de (patch)
tree0a6048889b65bb16ff58822e55bc1346e9eb07bd /js/document
parent648ee61ae84216d0236e0dbc211addc13b2cfa3a (diff)
downloadninja-04343eda8c2f870b0da55cfdc8003c99fe1cc4de.tar.gz
Remove trailing spaces
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/controllers/document.js2
-rwxr-xr-xjs/document/document-html.js2
-rwxr-xr-xjs/document/document-text.js2
-rwxr-xr-xjs/document/helpers/url-parser.js2
-rwxr-xr-xjs/document/helpers/webgl-helper.js4
-rwxr-xr-xjs/document/mediators/io.js2
-rwxr-xr-xjs/document/mediators/template.js180
-rwxr-xr-xjs/document/models/base.js4
-rwxr-xr-xjs/document/models/html.js4
-rwxr-xr-xjs/document/models/text.js2
-rwxr-xr-xjs/document/views/base.js2
-rwxr-xr-xjs/document/views/design.js4
12 files changed, 105 insertions, 105 deletions
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.
33var Montage = require("montage/core/core").Montage, 33var Montage = require("montage/core/core").Montage,
34 Component = require("montage/ui/component").Component; 34 Component = require("montage/ui/component").Component;
35//////////////////////////////////////////////////////////////////////// 35////////////////////////////////////////////////////////////////////////
36// 36//
37exports.DocumentController = Montage.create(Component, { 37exports.DocumentController = Montage.create(Component, {
38 //////////////////////////////////////////////////////////////////// 38 ////////////////////////////////////////////////////////////////////
39 // 39 //
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,
35 HtmlDocumentModel = require("js/document/models/html").HtmlDocumentModel, 35 HtmlDocumentModel = require("js/document/models/html").HtmlDocumentModel,
36 DesignDocumentView = require("js/document/views/design").DesignDocumentView; 36 DesignDocumentView = require("js/document/views/design").DesignDocumentView;
37//////////////////////////////////////////////////////////////////////// 37////////////////////////////////////////////////////////////////////////
38// 38//
39exports.HtmlDocument = Montage.create(Component, { 39exports.HtmlDocument = Montage.create(Component, {
40 //////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////////
41 // 41 //
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,
35 TextDocumentModel = require("js/document/models/text").TextDocumentModel, 35 TextDocumentModel = require("js/document/models/text").TextDocumentModel,
36 CodeDocumentView = require("js/document/views/code").CodeDocumentView; 36 CodeDocumentView = require("js/document/views/code").CodeDocumentView;
37//////////////////////////////////////////////////////////////////////// 37////////////////////////////////////////////////////////////////////////
38// 38//
39exports.TextDocument = Montage.create(Component, { 39exports.TextDocument = Montage.create(Component, {
40 //////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////////
41 // 41 //
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.
33var Montage = require("montage/core/core").Montage, 33var Montage = require("montage/core/core").Montage,
34 Component = require("montage/ui/component").Component; 34 Component = require("montage/ui/component").Component;
35//////////////////////////////////////////////////////////////////////// 35////////////////////////////////////////////////////////////////////////
36// 36//
37exports.UrlParser = Montage.create(Component, { 37exports.UrlParser = Montage.create(Component, {
38 //////////////////////////////////////////////////////////////////// 38 ////////////////////////////////////////////////////////////////////
39 // 39 //
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,
36 NJUtils = require("js/lib/NJUtils").NJUtils, 36 NJUtils = require("js/lib/NJUtils").NJUtils,
37 GLWorld = require("js/lib/drawing/world").World; 37 GLWorld = require("js/lib/drawing/world").World;
38//////////////////////////////////////////////////////////////////////// 38////////////////////////////////////////////////////////////////////////
39// 39//
40exports.webGlDocumentHelper = Montage.create(Component, { 40exports.webGlDocumentHelper = Montage.create(Component, {
41 //////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////
42 // 42 //
@@ -68,7 +68,7 @@ exports.webGlDocumentHelper = Montage.create(Component, {
68 } else { 68 } else {
69 this._glData = null 69 this._glData = null
70 } 70 }
71 // 71 //
72 return this._glData; 72 return this._glData;
73 }, 73 },
74 // 74 //
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.
33var Montage = require("montage/core/core").Montage, 33var Montage = require("montage/core/core").Montage,
34 Component = require("montage/ui/component").Component; 34 Component = require("montage/ui/component").Component;
35//////////////////////////////////////////////////////////////////////// 35////////////////////////////////////////////////////////////////////////
36// 36//
37exports.IoDocumentMediator = Montage.create(Component, { 37exports.IoDocumentMediator = Montage.create(Component, {
38 //////////////////////////////////////////////////////////////////// 38 ////////////////////////////////////////////////////////////////////
39 // 39 //
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,
35 TemplateCreator = require("node_modules/tools/template/template-creator").TemplateCreator, 35 TemplateCreator = require("node_modules/tools/template/template-creator").TemplateCreator,
36 ClassUuid = require("js/components/core/class-uuid").ClassUuid; 36 ClassUuid = require("js/components/core/class-uuid").ClassUuid;
37//////////////////////////////////////////////////////////////////////// 37////////////////////////////////////////////////////////////////////////
38// 38//
39exports.TemplateDocumentMediator = Montage.create(Component, { 39exports.TemplateDocumentMediator = Montage.create(Component, {
40 //////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////////
41 // 41 //
@@ -167,7 +167,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
167 for (var n in template.body.attributes) { 167 for (var n in template.body.attributes) {
168 if (template.body.attributes[n].value) { 168 if (template.body.attributes[n].value) {
169 template.file.content.document.body.setAttribute(template.body.attributes[n].name, template.body.attributes[n].value); 169 template.file.content.document.body.setAttribute(template.body.attributes[n].name, template.body.attributes[n].value);
170 } 170 }
171 } 171 }
172 // 172 //
173 if(template.template) { 173 if(template.template) {
@@ -233,7 +233,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
233 for (var n in presentNodes) { 233 for (var n in presentNodes) {
234 // 234 //
235 if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') === null) { 235 if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') === null) {
236 toremovetags.push(presentNodes[n]); 236 toremovetags.push(presentNodes[n]);
237 } else if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') !== null) { 237 } else if (presentNodes[n].getAttribute && presentNodes[n].getAttribute('data-ninja-node') !== null) {
238 //Removing attribute 238 //Removing attribute
239 presentNodes[n].removeAttribute('data-ninja-node'); 239 presentNodes[n].removeAttribute('data-ninja-node');
@@ -243,7 +243,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
243 var styletags = template.file.content.document.getElementsByTagName('style'), 243 var styletags = template.file.content.document.getElementsByTagName('style'),
244 linktags = template.file.content.document.getElementsByTagName('link'), 244 linktags = template.file.content.document.getElementsByTagName('link'),
245 njtemplatetags = template.file.content.document.querySelectorAll('[data-ninja-template]'); 245 njtemplatetags = template.file.content.document.querySelectorAll('[data-ninja-template]');
246 246
247 //Adding to tags to be removed form template 247 //Adding to tags to be removed form template
248 for (var f in njtemplatetags) { 248 for (var f in njtemplatetags) {
249 if (njtemplatetags[f].getAttribute) toremovetags.push(njtemplatetags[f]); 249 if (njtemplatetags[f].getAttribute) toremovetags.push(njtemplatetags[f]);
@@ -266,7 +266,7 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
266 //Checking head first 266 //Checking head first
267 template.file.content.document.head.removeChild(toremovetags[h]); 267 template.file.content.document.head.removeChild(toremovetags[h]);
268 } catch (e) { 268 } catch (e) {
269 269
270 } 270 }
271 try { 271 try {
272 //Checking body if not in head 272 //Checking body if not in head
@@ -287,23 +287,23 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
287 } 287 }
288 } 288 }
289 } 289 }
290 290
291 291
292 292
293 293
294 294
295 295
296 296
297 297
298 298
299 299
300 300
301 301
302 302
303 //TODO: Make proper CSS method 303 //TODO: Make proper CSS method
304 304
305 305
306 306
307 //Checking for type of save: styles = <style> only | css = <style> and <link> (all CSS) 307 //Checking for type of save: styles = <style> only | css = <style> and <link> (all CSS)
308 if (template.styles) { 308 if (template.styles) {
309 //Getting all style tags 309 //Getting all style tags
@@ -400,24 +400,24 @@ exports.TemplateDocumentMediator = Montage.create(Component, {
400 } 400 }
401 } 401 }
402 } 402 }
403 403
404 404
405 405
406 406
407 407
408 408
409 409
410 410
411