editor: canvas - support NullElements - elements that are not inserted into canvas
[fnpeditor.git] / src / editor / modules / rng / documentSummary.js
index 211037d..fe593c3 100644 (file)
@@ -9,15 +9,18 @@ var $ = require('libs/jquery'),
 
 var view = {
     dom: $('<div class="documentSummary"></div>'),
 
 var view = {
     dom: $('<div class="documentSummary"></div>'),
-    init: function(config) {
+    init: function(config, doc) {
         this.config = config;
         this.config = config;
+        this.doc = doc;
         this.template = _.template(template);
         this.template = _.template(template);
+
+        this.doc.on('propertyChanged', this.render, this);
     },
     },
-    render: function(properties) {
+    render: function() {
         this.dom.html(this.template({
             title: this.config.title,
             properties: this.config.properties,
         this.dom.html(this.template({
             title: this.config.title,
             properties: this.config.properties,
-            propertyValues: properties
+            propertyValues: this.doc.properties
         }));
     },
     setDraftField: function(value) {
         }));
     },
     setDraftField: function(value) {