From 7ef01349a7e28646a98bac1bee71e736d9e81b04 Mon Sep 17 00:00:00 2001 From: parag00991 Date: Sat, 19 Mar 2016 02:33:34 +0530 Subject: [PATCH] payoff accepting number values only --- html/js/tree/Payoff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/js/tree/Payoff.js b/html/js/tree/Payoff.js index a4614a3..709e63e 100644 --- a/html/js/tree/Payoff.js +++ b/html/js/tree/Payoff.js @@ -76,7 +76,7 @@ GTE.TREE = (function(parentModule) { } else { window.alert("Payoff should be a number."); // In order to get the previous text back, change text to current this.text - this.changeText(this.text); + this.editable.setText(this.text); } return this.value; };