Re: [pgAdmin4][Patch]: Select2 control destroy issue [Minor fix] - Mailing list pgadmin-hackers

From Dave Page
Subject Re: [pgAdmin4][Patch]: Select2 control destroy issue [Minor fix]
Date
Msg-id CA+OCxoy7UoDxC+4-__fyuDs7efaqj480V+Gnkz_E6RSD57s+MA@mail.gmail.com
Whole thread Raw
In response to [pgAdmin4][Patch]: Select2 control destroy issue [Minor fix]  (Surinder Kumar <surinder.kumar@enterprisedb.com>)
Responses Re: [pgAdmin4][Patch]: Select2 control destroy issue [Minor fix]
List pgadmin-hackers
Thanks, applied.

On Friday, October 14, 2016, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hi

While clicking on Select2 control, it tries to destroy the control and thus it doesn't get this object sometimes and throws error.

It should attempt to destroy the select2 object only if this object is not undefined.
Adds proper check to handle the case.

Please find minor patch and review.

Thanks
Surinder Kumar


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin 4 commit: While clicking on Select2 control, it tries to destro
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Properly quote names when renaming FTS dictionaries a