aboutsummaryrefslogtreecommitdiff
path: root/js/document/models
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-16 11:37:05 -0700
committerJose Antonio Marquez2012-05-16 11:37:05 -0700
commit5de553a1b3bdd8783ab6ce017ae70369ad92a890 (patch)
tree5d98f4a2787682a44979b5574e84dc67a7d6f4ae /js/document/models
parentb2c8041058ab8d16ca49d70ed24ddd29e79f51d2 (diff)
downloadninja-5de553a1b3bdd8783ab6ce017ae70369ad92a890.tar.gz
Fixing preview bug
Also setting up for Montage component serialization.
Diffstat (limited to 'js/document/models')
-rwxr-xr-xjs/document/models/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js
index f9844b70..033e16f6 100755
--- a/js/document/models/base.js
+++ b/js/document/models/base.js
@@ -93,7 +93,7 @@ exports.BaseDocumentModel = Montage.create(Component, {
93 //Currently only supporting current browser (Chrome, obviously) 93 //Currently only supporting current browser (Chrome, obviously)
94 switch (this.browser) { 94 switch (this.browser) {
95 case 'chrome': 95 case 'chrome':
96 if (this.template.type === 'banner' || this.template.type === 'animation') { 96 if (this.template && (this.template.type === 'banner' || this.template.type === 'animation')) {
97 window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url); 97 window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url);
98 } else { 98 } else {
99 window.open(this.url); 99 window.open(this.url);