remove irrelevant comments
authorjulesstp <julianmcarlin@gmail.com>
Thu, 7 Aug 2014 00:22:12 +0000 (20:22 -0400)
committerjulesstp <julianmcarlin@gmail.com>
Thu, 7 Aug 2014 00:22:12 +0000 (20:22 -0400)
enyo-client/application/source/models/sales_order.js
lib/enyo-x/source/views/child_workspace.js

index bff0375..3f30871 100644 (file)
@@ -196,36 +196,6 @@ white:true*/
       return defaults;
     },
 
-    /* 
-      The whole purpose here was to throw the popup in the appropriate scenario.
-      Now that's happening in enyo - childWorkspace - deleteItem.
-
-    destroy: function (options) {
-      var status = this.getParent().get("status"),
-        K = XM.SalesOrder,
-        that = this,
-        payload = {
-          type: K.QUESTION,
-        },
-        args = arguments,
-        message;
-
-      if (status !== K.CLOSED_STATUS &&
-        status !== K.CANCELLED_STATUS) {
-        message = "_deleteLine?".loc();
-        payload.callback = function (response) {
-          if (response.answer) {
-            XM.Model.prototype.destroy.apply(that, args);
-          }
-        };
-      } else {
-        // Must be closed, shouldn't have come here.
-        return;
-      }
-
-      this.notify(message, payload);
-    }, */
-
     isActive: function () {
       return this.get("status") === XM.SalesOrder.OPEN_STATUS;
     }
index fc11236..bb3d0e1 100644 (file)
@@ -160,10 +160,9 @@ trailing:true, white:true*/
         callback = function (response) {
           if (response.answer) {
             this.getActive().doPrevious();
+            // Waterfall down event - handled by lineItem grid box's valueChange function which "refreshes" the list
             model.on("statusChange", this.waterfall("onChildWorkspaceValueChange"));
             model.destroy();
-            // Waterfall down event - handled by lineItem grid box's valueChange function which "refreshes" the list
-            //this.waterfall("onChildWorkspaceValueChange");
           }
         };
       this.doNotify({