Don't use `this` in a callback with the wrong context.

@todo: Find a way to stop needing to refer to the specific instance
from the abstract class.
This commit is contained in:
George Stephanis 2015-08-10 16:05:49 -04:00
parent 0fb85f4656
commit 5783a20794
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@
this.needsUnloadConfirm = false;
},
unloadConfirmation : function(e) {
if ( this.needsUnloadConfirm ) {
// @todo: Find a way to stop needing to refer to the specific instance from the abstract class.
if ( WCTaxTableInstance.needsUnloadConfirm ) {
e.returnValue = data.strings.unload_confirmation_msg;
window.event.returnValue = data.strings.unload_confirmation_msg;
return data.strings.unload_confirmation_msg;