aboutsummaryrefslogtreecommitdiff
path: root/js/document/models
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-18 16:33:10 -0700
committerJose Antonio Marquez2012-05-18 16:33:10 -0700
commit48beced355a5d4ee959ed41e104b0a343411658c (patch)
tree6373a3098e82dbc17c470b3e68bc024d75578092 /js/document/models
parentd878aa470074d5698a316512b513949fa22073f2 (diff)
downloadninja-48beced355a5d4ee959ed41e104b0a343411658c.tar.gz
Clean up and adding TODOs
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 c99e36c7..6d9d2e89 100755
--- a/js/document/models/base.js
+++ b/js/document/models/base.js
@@ -100,7 +100,7 @@ exports.BaseDocumentModel = Montage.create(Component, {
100 } 100 }
101 break; 101 break;
102 default: 102 default:
103 if (this.template.type === 'banner' || this.template.type === 'animation') { 103 if (this.template && (this.template.type === 'banner' || this.template.type === 'animation')) {
104 window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url); 104 window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url);
105 } else { 105 } else {
106 window.open(this.url); 106 window.open(this.url);