From 344844234a33bb2a137089cb06daaf5f829d8de4 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 17 Sep 2013 22:50:13 -0700 Subject: [PATCH] fixed results not showing on render --- UI/Mixins/AsValidatedView.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/UI/Mixins/AsValidatedView.js b/UI/Mixins/AsValidatedView.js index d074b054e..cf4ef661e 100644 --- a/UI/Mixins/AsValidatedView.js +++ b/UI/Mixins/AsValidatedView.js @@ -9,7 +9,6 @@ define( return function () { var originalOnRender = this.prototype.onRender; - var originalOnClose = this.prototype.onClose; var originalBeforeClose = this.prototype.onBeforeClose; var errorHandler = function (response) { @@ -65,18 +64,6 @@ define( } }; - this.prototype.onClose = function () { - - if (this.model && this.model.isNew()) { - this.model.destroy(); - } - - if (originalOnClose) { - originalBeforeClose.call(this); - } - }; - - return this; }; });