aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/views')
-rwxr-xr-xjs/document/views/design.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index dad6de8b..4484167a 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -450,15 +450,17 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
450 template.initWithDocument(this.iframe.contentWindow.document); 450 template.initWithDocument(this.iframe.contentWindow.document);
451 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (){ 451 template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (){
452 //TODO: Verify this is properly done, seems like a hack 452 //TODO: Verify this is properly done, seems like a hack
453
454 var objArray = [];
453 for (var c in template._deserializer._objects) { 455 for (var c in template._deserializer._objects) {
454 //Forcing draw on components 456 //Forcing draw on components
455 template._deserializer._objects[c].needsDraw = true; 457 template._deserializer._objects[c].needsDraw = true;
456 //this.model.objects = template.deserializer.getObjectsFromLastDeserialization(); 458 objArray.push(template._deserializer._objects[c]);
457 } 459 }
458 460
459 // Now call the view callback 461 // Now call the view callback
460 if(self._viewCallback) { 462 if(self._viewCallback) {
461 self._viewCallback.viewCallback.call(self._viewCallback.context); 463 self._viewCallback.viewCallback.call(self._viewCallback.context, objArray);
462 } 464 }
463 465
464 }); 466 });