Fixes #191, update graph after adding new function and not changing default value

This commit is contained in:
Torkel Ödegaard
2014-03-11 13:00:28 +01:00
parent b396563235
commit 9ebf769b4d
4 changed files with 10 additions and 13 deletions

View File

@@ -314,8 +314,6 @@ function (_) {
};
FuncInstance.prototype.updateParam = function(strValue, index) {
var oldValue = this.params[index];
if (this.def.params[index].type === 'int') {
this.params[index] = parseInt(strValue, 10);
}
@@ -324,8 +322,6 @@ function (_) {
}
this.updateText();
return oldValue !== this.params[index];
};
FuncInstance.prototype.updateText = function () {