Comment 2 for bug 1511536

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5646
Committed: https://git.mahara.org/mahara/mahara/commit/52770f8baf2297d9cbf5506e2696b346fae8f419
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 52770f8baf2297d9cbf5506e2696b346fae8f419
Author: Robert Lyon <email address hidden>
Date: Fri Oct 30 12:26:48 2015 +1300

Bug 1511536: problem with deleting blocks when edit page first loads

The problem is due to the scope of the blockinstanceId variable being
outside of the click handler function, which inadvertently makes it
into a sort of static variable shared by all of the delete buttons.

So the solution is to use a locally-scoped blockinstanceId button
inside the click handler method.

Change-Id: I3e8ffac31cc869c545e85c5f53c3e710e2e71243
Signed-off-by: Robert Lyon <email address hidden>
Signed-off-by: Aaron Wells <email address hidden>