diff options
author | Nivesh Rajbhandari | 2012-05-17 11:22:03 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-17 11:22:03 -0700 |
commit | 6ce2f2a5af1bc66d8dbec04abfae2e07f43afcfe (patch) | |
tree | 7bbe1d778511418b1118bd06e7f38721d7eed370 /js/document/templates/banner/main.js | |
parent | 3d36ca3feb7a2cabd7d64335b2417637bd9aa906 (diff) | |
download | ninja-6ce2f2a5af1bc66d8dbec04abfae2e07f43afcfe.tar.gz |
Fixed chrome preview for banner templates.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/document/templates/banner/main.js')
-rw-r--r-- | js/document/templates/banner/main.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/document/templates/banner/main.js b/js/document/templates/banner/main.js index d5ac88d5..2acbe8f3 100644 --- a/js/document/templates/banner/main.js +++ b/js/document/templates/banner/main.js | |||
@@ -4,7 +4,9 @@ | |||
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 | ||
@@ -37,6 +39,10 @@ exports.Main = Montage.create(Component, { | |||
37 | 39 | ||
38 | }; | 40 | }; |
39 | 41 | ||
42 | window.mjsTemplateCreator = TemplateCreator; | ||
43 | // | ||
44 | window.mjsTemplate = Template; | ||
45 | |||
40 | // Dispatch event when this template has loaded. | 46 | // Dispatch event when this template has loaded. |
41 | /* | 47 | /* |
42 | var newEvent = document.createEvent( "CustomEvent" ); | 48 | var newEvent = document.createEvent( "CustomEvent" ); |