diff options
author | Armen Kesablyan | 2012-05-31 22:05:33 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-05-31 22:05:33 -0700 |
commit | 50ea77b261e1b3676aea2b1ed582d5e6c97a0997 (patch) | |
tree | fd317d8de8eaec728376c60273b1f6a214816e8e /js/document/views | |
parent | b7e33c16bab26f8ee0daa61f920cfdbcb7abc6e3 (diff) | |
parent | 04ef4ffcfde762a0aead4a7b702f3c019fdbeb69 (diff) | |
download | ninja-50ea77b261e1b3676aea2b1ed582d5e6c97a0997.tar.gz |
Merge pull request #4 from ericguzman/binding
Binding
Diffstat (limited to 'js/document/views')
-rwxr-xr-x | js/document/views/design.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js index c7313708..947ad196 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -395,11 +395,15 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
395 | initMontage: { | 395 | initMontage: { |
396 | value: function (scripttags) { | 396 | value: function (scripttags) { |
397 | // | 397 | // |
398 | //debugger; | ||
398 | this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { | 399 | this.iframe.contentWindow.document.body.addEventListener('mjsTemplateReady', function () { |
399 | //Initializing template with user's seriliazation | 400 | //Initializing template with user's seriliazation |
400 | var template = this.iframe.contentWindow.mjsTemplate.create(); | 401 | var template = this.iframe.contentWindow.mjsTemplate.create(); |
402 | |||
401 | template.initWithDocument(this.iframe.contentWindow.document); | 403 | template.initWithDocument(this.iframe.contentWindow.document); |
402 | template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){/*Nothing just a required extra parameter*/}); | 404 | template.instantiateWithOwnerAndDocument(null, this.iframe.contentWindow.document, function (e){ |
405 | this.model.objects = template.deserializer.getObjectsFromLastDeserialization(); | ||
406 | }.bind(this)); | ||
403 | }.bind(this), false); | 407 | }.bind(this), false); |
404 | } | 408 | } |
405 | }, | 409 | }, |