From 415119d5814054cdce6f16a9545ccd35c91270a7 Mon Sep 17 00:00:00 2001 From: Harshal Dhumal Date: Fri, 20 Jan 2017 13:24:37 +0000 Subject: [PATCH] Properly remove any event listeners added by subnode control. --- web/pgadmin/static/js/backform.pgadmin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index f35b03d8d..9722480a0 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -1206,6 +1206,9 @@ if (this.grid) { this.grid.remove(); } + if (this.collection) { + this.collection.off( "enteringEditMode"); + } }, clearInvalid: function() { this.$el.removeClass('subnode-error');