/**
 * @license
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

CLASS({
  name: 'QIssueCommentUpdateView',
  package: 'foam.apps.quickbug.ui',
  extendsModel: 'foam.ui.DetailView',

  requires: [
    'foam.apps.quickbug.model.QIssueCommentUpdate'
  ],

  properties: [
    { name: 'model', factory: function() { return this.QIssueCommentUpdate; } }
  ],

  methods: {
    updateSubViews: function() {
      if ( ! this.$ ) return;
      this.$.innerHTML = this.render();
    }
  },

  templates: [
    { name: 'toHTML', template: '<div id="<%= this.id %>"></div>' },
    { name: 'render' }
  ]
});

@@ -935,37 +935,483 @@
     
-updateSubViews: function() %7B%0A
+init: function() %7B%0A      this.data$.addListener(this.newData);%0A      this.newData();%0A      this.SUPER();%0A    %7D,%0A    destroy: function() %7B%0A      this.data = '';%0A      this.data$.removeListener(this.newData);%0A    %7D%0A  %7D,%0A%0A  listeners: %5B%0A    %7B%0A      name: 'newData'%0A      code: function(src, topic, old, nu) %7B%0A        if ( old ) old.removeListener(this.update);%0A        if ( nu ) nu.addListener(this.update);%0A      %7D%0A    %7D,%0A    %7B%0A      name: 'update',%0A      code: function() %7B%0A  
     
@@ -1436,16 +1436,18 @@
 return;%0A
+  
       th
@@ -1478,29 +1478,37 @@
 nder();%0A    
-%7D%0A
   %7D
+%0A    %7D%0A  %5D
 ,%0A%0A  templat

Fix QIssueCommentUpdateView to work with new DataViews refactoring.