/**
 * @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({
  package: 'com.google.ymp.controllers',
  name: 'DAOController',
  extends: 'foam.u2.DAOController',

  requires: [
    'foam.u2.DAOUpdateController',
    'foam.u2.md.Toolbar',
    'foam.u2.md.ToolbarAction',
  ],

  listeners: [
    {
      name: 'rowClick',
      code: function(_, _, obj) {
        var Y = this.Y.sub({ data: obj });
        var title = obj.title || obj.name;
        var self = this;
        this.stack.pushView(
          this.DAOUpdateController.create({
            model: this.model,
            data: obj,
            myControllerMode: 'view',
            title: title,
            /*toolbar_: (function() {
              var t = self.Toolbar.create({ title: title });
              t.addLeftActions([
                self.ToolbarAction.create({ data: obj, action: self.model_.getAction('back') }),
              ]);
              return t;
            })(),*/
          }, Y));
      }
    }
  ],
});

@@ -622,16 +622,17 @@
 se.%0A */%0A
+%0A
 CLASS(%7B%0A
@@ -916,16 +916,17 @@
 tion(_, 
+_
 _, obj) 
@@ -1029,59 +1029,29 @@
 var 
-self = this;%0A        this.stack.pushView(%0A         
+daoUpdateController =
  thi
@@ -1081,18 +1081,16 @@
 reate(%7B%0A
-  
         
@@ -1120,18 +1120,16 @@
         
-  
 data: ob
@@ -1131,18 +1131,16 @@
 a: obj,%0A
-  
         
@@ -1177,18 +1177,16 @@
         
-  
 title: t
@@ -1203,64 +1203,41 @@
     
-    /*toolbar_: (function() %7B%0A              var t = self
+%7D, Y);%0A        var toolbar = this
 .Too
@@ -1264,16 +1264,19 @@
  title %7D
+, Y
 );%0A     
@@ -1278,23 +1278,23 @@
         
-      t
+toolbar
 .addLeft
@@ -1317,18 +1317,12 @@
     
-      self
+this
 .Too
@@ -1344,60 +1344,92 @@
 te(%7B
- data: obj, action: self.model_.getAction('back') %7D)
+%0A            data: daoUpdateController,%0A            action: daoUpdateController.BACK
 ,%0A  
@@ -1440,15 +1440,11 @@
     
-    %5D);
+%7D),
 %0A   
@@ -1452,22 +1452,58 @@
     
+%5D);%0A
       
-return t
+  daoUpdateController.toolbar_ = toolbar
 ;%0A  
@@ -1512,51 +1512,65 @@
     
- 
-   %7D)(),*/%0A   
+this.stack.pushView(daoUpdateController);%0A
       
- 
 %7D,
- Y));%0A      %7D
 %0A    %7D
+,
 %0A  %5D

Fix DAO(Update)Controller to correctly configure toolbar with back button, but no delete button.