diff options
author | Valerio Virgillito | 2012-05-16 11:42:09 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-16 11:42:09 -0700 |
commit | 23bf5db97fb24afdb14d02faac1136fc04137e96 (patch) | |
tree | b0d2bb48506cda93e0db62d3e77c4ca9fc7306cf /js/document/templates/html/main.js | |
parent | 081d72d145f3b570f0f866802e015527848f690e (diff) | |
parent | 78250b70bdf0089e2b8ac56fb77e2f76ab83f34c (diff) | |
download | ninja-23bf5db97fb24afdb14d02faac1136fc04137e96.tar.gz |
Merge pull request #238 from joseeight/Document
Fixing Chrome Preview
Diffstat (limited to 'js/document/templates/html/main.js')
-rw-r--r-- | js/document/templates/html/main.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/js/document/templates/html/main.js b/js/document/templates/html/main.js index d5ac88d5..f45657bb 100644 --- a/js/document/templates/html/main.js +++ b/js/document/templates/html/main.js | |||
@@ -3,8 +3,10 @@ | |||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | 3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> |
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | var Montage = require("montage/core/core").Montage, | 6 | var Montage = require("montage/core/core").Montage, |
7 | Component = require("montage/ui/component").Component; | 7 | Component = require("montage/ui/component").Component, |
8 | Template = require("montage/ui/template").Template, | ||
9 | TemplateCreator = require("tools/template/template-creator").TemplateCreator; | ||
8 | 10 | ||
9 | exports.Main = Montage.create(Component, { | 11 | exports.Main = Montage.create(Component, { |
10 | 12 | ||
@@ -18,6 +20,7 @@ exports.Main = Montage.create(Component, { | |||
18 | templateDidLoad: { | 20 | templateDidLoad: { |
19 | value: function(){ | 21 | value: function(){ |
20 | var self = this; | 22 | var self = this; |
23 | // | ||
21 | window.addComponent = function(element, data, callback) { | 24 | window.addComponent = function(element, data, callback) { |
22 | var component; | 25 | var component; |
23 | 26 | ||
@@ -36,7 +39,12 @@ exports.Main = Montage.create(Component, { | |||
36 | .end(); | 39 | .end(); |
37 | 40 | ||
38 | }; | 41 | }; |
39 | 42 | // | |
43 | window.mjsTemplateCreator = TemplateCreator.create(); | ||
44 | // | ||
45 | window.mjsTemplate = Template.create(); | ||
46 | |||
47 | |||
40 | // Dispatch event when this template has loaded. | 48 | // Dispatch event when this template has loaded. |
41 | /* | 49 | /* |
42 | var newEvent = document.createEvent( "CustomEvent" ); | 50 | var newEvent = document.createEvent( "CustomEvent" ); |