aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-11 13:25:13 -0700
committerArmen Kesablyan2012-06-11 13:25:13 -0700
commit337efc667372326ae2f9984d89a47bb151016774 (patch)
tree717f5a03f398cbab3b61f221458ed11f6b9db228 /js/document/views
parent278769df00ced8620fd73371e38fe2e43f07ca3b (diff)
downloadninja-337efc667372326ae2f9984d89a47bb151016774.tar.gz
Changes Made to Object Listing of iFrame
Signed-off-by: Armen Kesablyan <armen@motorola.com>
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 });